[2017-07-30T13:54:23,964][INFO ][o.e.b.BootstrapChecks ] [Z3aG6HQ] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [65535] 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]
編輯 /etc/security/limits.conf
在文件最後添加
* soft nofile 65536
* hard nofile 65536
保存
此文件修改後需要重新登錄用戶,纔會生效
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
1、切換到root用戶修改配置sysctl.conf
vi /etc/sysctl.conf
- 1
- 1
2、添加下面配置:
vm.max_map_count=655360
- 1
- 1
3、並執行命令:
sysctl -p