ElasticSearch服务器secrity配置

1. 修改/etc/security/limits.conf

/etc/security/limits.conf

1
2
3
4
5
6
[username] soft nofile 102400
[username] hard nofile 102400
[username] soft nproc 2048
[username] hard nproc 2048
[username] soft memlock unlimited
[username] hard memlock unlimited

重新登录后

1
ulimit -a 检测

2. 修改max_map_count

1
2
vim /etc/sysctl.conf
vm.max_map_count=262144

执行命令刷新

1
sysctl -p