8

meilisearch ubuntu systemd

 3 years ago
source link: https://sskaje.me/2021/01/meilisearch-ubuntu-systemd/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

meilisearch ubuntu systemd

正在寻求ES的轻量化解决方案,看到了meilisearch,于是上手实验了一把。留了个systemd 配置笔记。

原始安装文档 https://docs.meilisearch.com/guides/advanced_guides/installation.html,官方给的 apt 的安装只有二进制文件,没有配置文件没有启动脚本。

/etc/default/meilisearch

MEILI_DB_PATH=/var/lib/meilidb
MEILI_HTTP_ADDR=127.0.0.1:7700
MEILI_MASTER_KEY=my-prod-key
MEILI_ENV=production
MEILI_NO_ANALYTICS=1

/etc/systemd/system/meilisearch.service

[Unit]
Description=MeiliSearch
After=systemd-user-sessions.service
[Service]
EnvironmentFile=/etc/default/meilisearch
Type=simple
ExecStart=/usr/bin/meilisearch
[Install]
WantedBy=default.target
systemctl daemon-reload
systemctl start meilisearch
meilisearch ubuntu systemd by @sskaje: https://sskaje.me/2021/01/meilisearch-ubuntu-systemd/
Link to this post!

Author sskajePosted on January 1, 2021January 1, 2021Categories Linux, 笔记Tags meilisearch, systemd

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK