环境:CentOS6.5----ES6.1.3
报错1:
max number of threads [3818] for user [es] is too low, increase to at least [4096]
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决:
切换到root用户 ( su -l root )
vi /etc/security/limits.conf 在最后加上:
* soft nofile 65536
*hard nofile 65536
*soft nproc 4096
*hard nproc 4096
报错2:system call filters failed to install; check the logs and fix your configuration or disable system call fil ters at your own risk
解决:
vi ./elasticsearch-6.1.3/config/elasticsearch.yml
在一栏Memory 下加上
bootstrap.system_call_filter: false
环境:CentOS6.7----ES6.5.3
报错:max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决方案: 1,切换到root用户 ( su -l root ) ulimit -Hn 查看硬限制 vi /etc/security/limits.conf 添加下面设置 hadoop是用户(nofile 是代表最大文件打开数,soft: 警告;hard:严格) tom soft nofile 65536 ~> NODE: 新建的用户 tom hard nofile 65536 退出用户重新登录,使配置生效 ~> reboot 重启虚拟机 重新 ulimit -Hn 查看硬限制 会发现数值有4096改成65535 ~>root用户切换到tom用户,才能察觉到配置信息起作用了。 ———————————— 2,vi /etc/security/limits.d/90-nproc.conf ~> 文件名以 -nproc.conf结尾 找到如下内容: soft nproc 1024 修改为 soft nproc 4096 ———————————— 3,vi /etc/sysctl.conf ~>在root用户下进行修改 添加下面配置: vm.max_map_count=655360 并执行命令: sysctl -p