天天看點

CentOS7上elasticsearch5.0啟動失敗

問題描述:

最新版本5.0release了,想着裝上試試,結果一上來就報了兩個錯,然後就退出了,如下:

CentOS7上elasticsearch5.0啟動失敗

解決方法:

1.增大檔案描述符和記憶體鎖定問題

[[email protected] ~]#  cat >>  /etc/security/limits.conf << END

elasticsearch  soft  memlock  unlimited

elasticsearch  hard  memlock  unlimited

*        hard    nofile           65536

*        soft    nofile           65536

END

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

[[email protected] ~]# echo "vm.max_map_count = 262144" >> /etc/sysctl.conf

[[email protected] ~]# sysctl -p

vm.max_map_count = 262144

繼續閱讀