[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [1024] for user [ly] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 错误2:文件权限不足
我们用的是leyou用户,而不是root,所以文件权限不足。 首先用root用户登录。
然后修改配置文件:
vim /etc/security/limits.conf
添加下面的内容:
soft nofile 65536
hard nofile 131072
soft nproc 4096
hard nproc 4096
错误3:线程数不敷
继续修改配置:
vim /etc/security/limits.d/90-nproc.conf
修改内容:
错误4:历程假造内存
vm.max_map_count:限制一个历程可以拥有的VMA(假造内存区域)的数量,继续修改配置文件, :
vim /etc/sysctl.conf
添加下面内容:
vm.max_map_count=655360 实行下令:
sysctl -p