启动检查没有通过
[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]
[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
- 1
- 1
2、添加下面配置:
- 1
- 1
3、并执行命令: