ES解決bootstrap checks failed, memory locking requested for elasticsearch process but memory is not lo


問題描述:docker


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

解決方法:vim

$ 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 #當重啓服務還有這個問題時,重啓機器,生效配置。
相關文章
相關標籤/搜索