elasticSearch5.5.0修改network host 后无法启动
故障情况:默认安装后可以正常启动,但是监控的IP为127.0.0.1,由于需要外网访问,增加 network.host: 0.0.0.0 后,显示启动成功,但通过进程发现,未启动成功,无法正常使用。
解决情况:通过查看/var/log/elasticsearch/elasticsearch.log日志文件,发现有几处报错,挨个进行解决
问题一:bootstrap checks failed (有可能是主要问题)
修改/etc/elasticsearch/elasticsearch.yml配置文件,
bootstrap.memory_lock: false (此处默认为true)
bootstrap.system_call_filter: false
问题二: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
* soft nproc 65536
* hard nproc 65536
问题三:max number of threads [1024] for user [elasticsearch] is too low, increase to at least [2048]
修改/etc/security/limits.d/90-nproc.conf,将
* soft nproc 1024
修改为
* soft nproc 2048
问题四:system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解决方案同1,这两个应该是同一个问题。
以上几点都修改完以后,再次启动,发现一切正常!
除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/259.html