1.错误信息:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
2.原因是进程不够用了
3.解决方法:
(1)切换到root用户,修改文件
vi /etc/security/limits.conf
//在文件末尾添加下面的参数值
* soft nofile 65536
* hard nofile 131072
(2)在切换到普通用户,使用命令查看进程数
ulimit -Hu
ulimit -Su
(3)重新启动elasticsearch即可:
(4)验证,成功:
curl 'http://192.168.127.121:9200'