[Solved] ElasticSearch startup error: bootstrap checks failed

Modify the elasticsearch.yml configuration file to allow external network access.

vim config/elasticsearch.yml
# add

network.host: 0.0.0.0

Start failed, check did not pass, report error

[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 add the following content;
* soft nofile 65536
* hard nofile 65536 After
this file is modified, you need to log in to the user again 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 add the following content:
vm.max_map_count=655360
After saving, execute:

sysctl -p

Restart, success.

 

bin/elasticsearch 

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *