问题一:文件权限不足
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
解决办法:
修改配置文件:
vi /etc/security/limits.conf
在最后添加内容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
问题二:线程数不足
max number of threads [1024] for user [leyou] is too low, increase to at least [4096]
解决办法:
修改文件:
vi /etc/security/limits.d/90-nproc.conf
将内容:
* soft nproc 1024
改为:
* soft nproc 4096
问题三:进程虚拟机内存
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
解决办法:
修改配置文件:
vi /etc/sysctl.conf
在最后添加内容:
vm.max_map_count=655360