Update 'Install_Configure_ElasticSearch'

Kaimbacher 2022-07-01 09:18:40 +00:00
parent 677c870b76
commit 4fa14fffce

@ -38,8 +38,22 @@ network.host: localhost
These are the minimum settings you can start with in order to use Elasticsearch. Now you can start Elasticsearch for the first time. These are the minimum settings you can start with in order to use Elasticsearch. Now you can start Elasticsearch for the first time.
Start the Elasticsearch service with systemctl. Give Elasticsearch a few moments to start up. Otherwise, you may get errors about not being able to connect. \ Check if Elasticsearch starts: \
`sudo systemctl start elasticsearch` `sudo systemctl start elasticsearch`
Next, run the following command to enable Elasticsearch to start up every time your server boots: \ Next, run the following command to enable Elasticsearch to start up every time your server boots: \
`sudo systemctl enable elasticsearch` `sudo systemctl enable elasticsearch`
Let's create a new file called 'memory.options' in the 'jvm.options.d' directory so we can define memory requirements when an Elasticsearch instance starts:\
`sudo nano /etc/elasticsearch/jvm.options.d/memory.options`
In the file, add the minimum and maximum memory requirements:
```
-Xms1g
-Xmx4g
```
`sudo systemctl restart elasticsearch`
# Step 3- Securing ElasticSearch