es启动报错:
原因是:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
和
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
将当前用户的软硬限制调大。找到文件 /etc/security/limits.conf,编辑,在文件的最后追加如下配置:
es soft nofile 65535
es hard nofile 65537
解决:
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
vim /etc/sysctl.conf
#添加如下配置
vm.max_map_count=655360
#保存后,刷新配置
sysctl -p /etc/sysctl.conf/