啓動 ES 報錯 ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_

當啓動 ES 時報錯如下:

ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
{"type": "server", "timestamp": "2019-12-01T11:34:18,422+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "geektime", "node.name": "es7_02",  "message": "stopping ..."  }

解決方案:

編輯 /etc/security/limits.conf,追加以下內容;
 

* soft nofile 65536
* hard nofile 65536

編輯 /etc/sysctl.conf,追加以下內容:

vm.max_map_count=655360

保存後,執行:

sysctl -p

重新啓動,成功。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章