Elasticsearch startup error, bootstrap checks failed [How to Solve]

Modify the elasticsearch.yml configuration file to allow extranet access.

vim config/elasticsearch.yml
# Add

network.host: 0.0.0.0

Failed to start, check did not pass, error reported

[2018-05-18T17:44:59,658][INFO ][o.e.b.BootstrapChecks    ] [gFOuNlS] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

Edit /etc/security/limits.conf and append the following.
* soft nofile 65536
* hard nofile 65536
You need to re-login to the user after modifying this file for it to take effect

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Edit /etc/sysctl.conf and append the following.
vm.max_map_count=655360
After saving, execute.

 

sysctl -p

Restart and done!

bin/elasticsearch

Similar Posts: