mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Update elasticsearch.md (#929)
- Update `openjdk-17-jre-headless` in Ubuntu 20.04 and Debian 11 - Update ElasticSearch to 7.x - Add `systemctl daemon-reload` after installation Tested and it's working fine.
This commit is contained in:
parent
98d85c9f48
commit
2915445503
@ -14,20 +14,20 @@ Mastodon supports full-text search when ElasticSearch is available. Mastodon’s
|
|||||||
ElasticSearch requires a Java runtime. If you don’t have Java already installed, do it now. Assuming you are logged in as `root`:
|
ElasticSearch requires a Java runtime. If you don’t have Java already installed, do it now. Assuming you are logged in as `root`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt install openjdk-8-jre-headless
|
apt install openjdk-17-jre-headless
|
||||||
```
|
```
|
||||||
|
|
||||||
Add the official ElasticSearch repository to apt:
|
Add the official ElasticSearch repository to apt:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
|
wget -O /usr/share/keyrings/elasticsearch.asc https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||||
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list
|
echo "deb [signed-by=/usr/share/keyrings/elasticsearch.asc] https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list
|
||||||
apt update
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you can install ElasticSearch:
|
Now you can install ElasticSearch:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
apt update
|
||||||
apt install elasticsearch
|
apt install elasticsearch
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -42,6 +42,7 @@ apt install elasticsearch
|
|||||||
To start ElasticSearch:
|
To start ElasticSearch:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
systemctl daemon-reload
|
||||||
systemctl enable --now elasticsearch
|
systemctl enable --now elasticsearch
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -67,6 +68,8 @@ systemctl reload mastodon-web
|
|||||||
Now it's time to create the ElasticSearch indices and fill them with data:
|
Now it's time to create the ElasticSearch indices and fill them with data:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
su - mastodon
|
||||||
|
cd live
|
||||||
RAILS_ENV=production bin/tootctl search deploy
|
RAILS_ENV=production bin/tootctl search deploy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user