ElasticSearch啓動報錯,常規解決方法

啓動檢查沒有通過
[2017-07-30T13:54:23,964][INFO ][o.e.b.BootstrapChecks    ] [Z3aG6HQ] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]


解決:

[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

編輯 /etc/security/limits.conf
在文件最後添加
* soft nofile 65536
* hard nofile 65536
保存

此文件修改後需要重新登錄用戶,纔會生效


[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

1、切換到root用戶修改配置sysctl.conf

vi /etc/sysctl.conf 
  • 1
  • 1

2、添加下面配置:

vm.max_map_count=655360
  • 1
  • 1

3、並執行命令:

sysctl -p


發佈了40 篇原創文章 · 獲贊 3 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章