Elasticsearch 安装遇到的问题总结
Elasticsearch 安装遇到的问题总结
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决办法:
将当前用户的软硬限制调大。
找到文件 /etc/security/limits.conf
,编辑,在文件的最后追加如下配置:
es soft nofile 65535
es hard nofile 65537
soft nofile
表示软限制,hard nofile
表示硬限制,
上面两行语句表示,es用户的软限制为65535,硬限制为65537,
max number of threads [3753] for user [XX] is too low, increase to at least [4096]…
解决办法
设置/etc/security/limits.conf
root soft nproc 5000
root hard nproc 5000
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决办法:
在 /etc/sysctl.conf
文件最后添加一行
vm.max_map_count=262144