max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

安装Elasticsearsh报错

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
打开/etc/security/limits.conf
编辑 /etc/security/limits.conf,追加以下内容;

  • soft nofile 65536
  • hard nofile 65536
    此文件修改后需要重新登录用户,才会生效
    登录后使用
    ulimit -S -n
    ulimit -H -n
    查看

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
重新启动ES即可,可以正常启动了
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]