elastic search 安装时关键配置

2017-10-11  本文已影响0人  枝头残月野狼嚎嗷嗷呜

创建用户

ES不能用root用户来启动,所以要先创建一个专门的用户,并且把ES的文件夹给这个用户赋上权限
http://blog.csdn.net/mengfei86/article/details/51210093

max map count

修改/etc/sysctl.conf
加入配置:
vm.max_map_count=262144
然后用命令使其永久生效
# sysctl -p

修改系统句柄限制

修改/etc/security/limits.conf
添加如下配置

elasticsearch soft nofile 65536

elasticsearch  hard nofile 131072

elasticsearch  soft nproc 2048

elasticsearch  hard nproc 4096

其他

用RedHat 6.8时,还报了另外一个错
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解决方法:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在bootstrap.memory_lock下面:
bootstrap.system_call_filter: false

上一篇 下一篇

猜你喜欢

热点阅读