华为云部署es max file descriptors [65535] for elasticsearch process is too low解决

1,部署es 显示错误

 max file descriptors [65535] for elasticsearch process is too low

普通解决

vi /etc/security/limits.conf
hadoop soft nofile 65536
hadoop hard nofile 131072
hadoop soft nproc 2048
hadoop hard nproc 4096

查看
ulimit -Hn 还是 65536

ulimit 配置优先级

第一优先级:最后一次ulimit命令设置

第二优先级:/etc/security/limits.d/

第三优先级:/etc/security/limits.conf

系统优先级:/etc/systemd/system.conf 、user.conf

重点:

华为云在/etc/security/limits.d/ 目录下有个huawei-nofile.conf 这个文件

  • soft nofile 65535
  • hard nofile 65535
    写了限制。。

修改为65536 解决

微信公众号

你可能感兴趣的:(centos)