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