Elasticse报错-bootstrap checks failed

Issue

ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2019-05-28T22:48:34,271][INFO ][o.e.n.Node               ] [elasticsearch-01] stopping ...
[2019-05-28T22:48:34,301][INFO ][o.e.n.Node               ] [elasticsearch-01] stopped
[2019-05-28T22:48:34,302][INFO ][o.e.n.Node               ] [elasticsearch-01] closing ...
[2019-05-28T22:48:34,329][INFO ][o.e.n.Node               ] [elasticsearch-01] closed
[2019-05-28T22:48:34,333][INFO ][o.e.x.m.p.NativeController] [elasticsearch-01] Native controller process has stopped - no new native processes can be started

在这里插入图片描述

Answer

原因:limits.conf文件中type:soft和hard,item:nofile的值太低,需要增加到至少65535

解决办法:修改/etc/security/limits.conf文件,然后重新登录用户

* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
发布了131 篇原创文章 · 获赞 12 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/JavaDestiny/article/details/90649272