elasticsearch5.5启动报错: ERROR: [3] bootstrap checks failed ,
super_junior 提问于:2017-08-20
2 0

完整如下:

[2017-08-20T21:18:13,593][INFO ][o.e.b.BootstrapChecks    ] [36876LF] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [1024] for user [es] is too low, increase to at least [2048]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2017-08-20T21:18:13,652][INFO ][o.e.n.Node               ] [36876LF] stopping ...
[2017-08-20T21:18:13,712][INFO ][o.e.n.Node               ] [36876LF] stopped
[2017-08-20T21:18:13,713][INFO ][o.e.n.Node               ] [36876LF] closing ...
[2017-08-20T21:18:13,773][INFO ][o.e.n.Node               ] [36876LF] closed
  • 所有回答
bluesky 回答于:2017-08-21
1 0

切换到root用户

  • vim /etc/security/limits.conf

添加

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 409
  • vim /etc/security/limits.d/90-nproc.conf

修改如下内容:

* soft nproc 1024

修改为

* soft nproc 2048
  • vim /etc/sysctl.conf

添加下面配置:

vm.max_map_count=655360

并执行命令:

sysctl -p
我来回答    elasticsearch5.5启动报错: ERROR: [3] bootstrap checks failed ,