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