错误1,文件权限不足,修改配置文件:先切换到root用户
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
vi /etc/security/limits.conf
然后添加一下内容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
错误2:线程数不够
[2]: max number of threads [3795] for user [newuser] is too low, increase to at least [4096]
修改配置 :
vi /etc/security/limits.d/90-nproc.conf
修改下面的内容:
* soft nproc 1024
* soft nproc 4096
注意:如果没有 /etc/security/limits.d/90-nproc.conf文件,那么修改&#x