elasticsearch启动报错

1,max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

 查看

ulimit -Hn

修改

[root@localhost ~]# cp /etc/security/limits.conf /etc/security/limits.conf.bak
[root@localhost ~]# cat /etc/security/limits.conf | grep -v "seven" > /tmp/system_limits.conf
[root@localhost ~]# echo "seven hard nofile 65536" >> /tmp/system_limits.conf 
[root@localhost ~]# echo "seven soft nofile 65536" >> /tmp/system_limits.conf 
[root@localhost ~]# mv /tmp/system_limits.conf /etc/security/limits.conf

 修改后重新登录seven用户,使用如下命令查看是否修改成功

2,max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

查看

sysctl -a|grep vm.max_map_count

设置

sysctl -w vm.max_map_count=262144
posted @ 2017-10-26 13:01  王东波  阅读(90)  评论(0编辑  收藏  举报