elasticsearch安装时遇到的问题
1. 提示:max file descriptors [4096] for elasticsearch process is too low
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决方法如下:
编辑/etc/security/limits.conf
文件vi /etc/security/limits.conf
在文件的末尾处加上以下内容并保存
1 | elasearch soft nofile 65536 |
2. 提示:max virtual memory areas vm.max_map_count [65530] is too low
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决方法如下:
执行:vi /etc/sysctl.conf
在里面最后一行加入:vm.max_map_count=655360
再执行下面命令使配置生效sysctl -p
再使用以下命令查看是否已经生效sysctl -a | grep "vm.max_map_count"
生效即可