异常摘要
代码语言:javascript复制ERROR: bootstrap checks failed
max file descriptors [10240] for elasticsearch process likely too low, increase to at least [65536]
max number of threads [1024] for user [elsearch] likely too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
切换到root用户
修改limits.conf
代码语言:javascript复制vi /etc/security/limits.conf
#添加如下内容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
修改XX-nproc.conf (不同机器XX不一样,可先到 cd /etc/security/limits.d/ 查看下)
代码语言:javascript复制vi /etc/security/limits.d/XX-nproc.conf
#修改为
* soft nproc 4096
修改/etc/sysctl.conf
代码语言:javascript复制#添加下面配置:
vm.max_map_count=655360
执行命令:
代码语言:javascript复制sysctl -p
注意:如果仍然提示异常
max file ******
max number ******
max virtual ******
可根据提示调整上述文件参数大小即可解决。