elasticsearch启动报错 bootstrap checks failed
ERROR: [1] bootstrap checks failed1. 关于报错:[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]解决办法:vim /etc/security/limits.conf添加* soft nofile 65536* ha
ERROR: [1] bootstrap checks failed
1. 关于报错:[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决办法:
vim /etc/security/limits.conf
添加
* soft nofile 65536
* hard nofile 65536
来回切换下用户,使之生效;
2. 关于报错:[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决办法:
vim /etc/sysctl.conf
添加:
vm.max_map_count=262144
保存后,执行:
sysctl -p
重新启动,成功。
针对第三个问题:system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
出现错误的原因:是因为centos6.x操作系统不支持SecComp,而elasticsearch 5.5.2默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动。
在elasticsearch.yml中添加配置项:bootstrap.system_call_filter为false:
1 2 |
|
针对第四个问题:max number of threads [1024] for user [wh] likely too low, increase to at least [2048]
vi /etc/security/limits.d/90-nproc.conf
修改如下内容:
* soft nproc 1024
#修改为
* soft nproc 2048
参考:关于elasticsearch boostrap checks failed错误类型整理及解决方法 - linzepeng - 博客园
更多推荐
所有评论(0)