操作
丼鯖を全文検索へ対応¶
材料¶
- FreeBSD上で稼働する丼鯖
ElasticSearchのインスコ¶
- 導入済みのportsを更新。
- textproc/elasticsearch7をインスコ。
- データ置き場を分けた方は, /usr/local/etc/elasticsearch/elasticsearch.yml の
path.dataを変更。 - /etc/rc.conf へ
elasticsearch_enable="YES"を追加。 - ElasticSearchを起動。
丼鯖の設定変更¶
- ~/live/.env.production へ次を追加。
- 索引を作成。
- /usr/local/etc/rc.d/mastodon の
# REQUIRE:へ,elasticsearchを追加。 - 丼サービスを再起動。