ES解决bootstrap checks failed, memory locking requested for elasticsearch process but memory is not locked问题


问题描述:


ERROR: [1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked

解决方法:

$ vi /etc/security/limits.conf
* soft memlock unlimited
* hard memlock unlimited
* soft nofile 65536
* hard nofile 65536
$ vi /etc/sysctl.conf
vm.max_map_count=262144
$ sysctl -p
$ echo -e "[Service]\nLimitMEMLOCK=infinity" | SYSTEMD_EDITOR=tee systemctl edit docker.service
$ vim /etc/systemd/system.conf #添加以下配置
DefaultLimitNOFILE=65536
DefaultLimitNPROC=32000
DefaultLimitMEMLOCK=infinity
$ systemctl daemon-reload


$ systemctl enable docker.service
$ systemctl restart docker
$ reboot #当重启服务还有这个问题时,重启机器,生效配置。

posted on 2019-08-21 11:13  dearjazz  阅读(1118)  评论(0)    收藏  举报

导航