elk-安装常见错误
错误1:max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
解决办法:编辑/etc/security/limits.conf文件,在最后面加上以下配置即可,test为执行启动程序的用户
[test@ghs ~]# vim /etc/security/limits.conf
test soft nofile 65536
test hard nofile 65536
修改后重新登录test用户,执行如下命令显示下面信息表示成功
[test@ghs ~]$ ulimit -Hn
65536
错误2: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
执行下面命令显示如下,表示成功,再次执行启动程序即可
[root@ghs log]# sysctl -p
vm.max_map_count = 655360
记录每一天有趣的事情!!