前提
centos版本:6.X
问题1
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决1
切换到root用户,编辑limits.conf 添加类似如下内容
vi /etc/security/limits.conf
##添加如下内容
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
问题2
max number of threads [1024] for user [elsearch] is too low, increase to least [4096]
解决2
切换到root用户下,进入limits.d目录下修改配置文件
vi /etc/security/limits.d/90-nproc.conf
##修改内容如下
* soft nproc 1024
## 修改为
* soft nproc 4096
问题3
system call filters failed to install ; check the logs and fix your configuration or disable system call filters at your own risk
解决3
centos6.x不支持seccomp,而es5.2.0默认bootstrap.system_call_filter为true
vim config/elasticsearch.yml
##添加
bootstrap.system_call_filter:false