啟動elasticsearch報錯解決

1、提示文件描述符數量太少,修改/etc/security/limits.conf文件,添加。

*        hard    nofile           65536
*        soft    nofile           65536

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

    /etc/sysctl.conf 文件添加 vm.max_map_count=262144
    sysctl -p

3、system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

原因:
這是在因為Centos6不支持SecComp,而ES5.2.0默認bootstrap.system_call_filter為true進行檢測,所以導致檢測失敗,失敗后直接導致ES不能啟動。
解決:
在elasticsearch.yml中配置bootstrap.system_call_filter為false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false

4、實例配置

path.data: /opt/data/elasticsearch
path.logs: /opt/logs/elasticsearch
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 0.0.0.0
http.port: 9200
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容