【elasticsearch】memory locking requested for elasticsearch process but memory is not locked
解决方法(开启bootstrap.memory_lock:):
- 修改文件
/etc/elasticsearch/elasticsearch.yml,上面那个报错就是开启后产生的,如果开启还要修改其它系统配置文件
bootstrap.memory_lock: true
- 修改文件
/etc/security/limits.conf,最后添加以下内容。
* soft nofile 65536
* hard nofile 65536
* soft nproc 32000
* hard nproc 32000
* hard memlock unlimited
* soft memlock unlimited
- 修改文件
/etc/systemd/system.conf,分别修改以下内容。
DefaultLimitNOFILE=65536
DefaultLimitNPROC=32000
DefaultLimitMEMLOCK=infinity
改好后重启下系统。再启动elasticsearch就没报错了 。
转自:https://blog.csdn.net/cbuy888/article/details/103166008

浙公网安备 33010602011771号