出现bootstrap check的原因多是因为个人开发机配置不高造成的,在生产服务器上使用es默认配置启动完全没问题。但是,既然在个人机上启动有问题,总得解决是吧。方案如下:
①编辑$ES_HOEM/config/elasticsearch.yml,修改network.host:为绑定ip。然后重启,报错如下
②[x]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
vim /etc/security/limits.conf
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
③[x]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
vim /etc/sysctl.conf
vm.max_map_count=262144
保存退出,sysctl -p 不重启使配置生效
④[x]: max number of threads [1024] for user [test] is too low, increase to at least [4096]
vim /etc/security/limits.d/90-nproc.conf
1024 改为4096或者unlimited
⑤[x]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
vim elasticsearch.yml
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
⑥重启使配置生效
reboot & restart elasticsearch