創(chuàng)建用戶
ES不能用root用戶來啟動(dòng)扇单,所以要先創(chuàng)建一個(gè)專門的用戶,并且把ES的文件夾給這個(gè)用戶賦上權(quán)限
http://blog.csdn.net/mengfei86/article/details/51210093
max map count
修改/etc/sysctl.conf
加入配置:
vm.max_map_count=262144
然后用命令使其永久生效
# sysctl -p
修改系統(tǒng)句柄限制
修改/etc/security/limits.conf
添加如下配置
elasticsearch soft nofile 65536
elasticsearch hard nofile 131072
elasticsearch soft nproc 2048
elasticsearch hard nproc 4096
其他
用RedHat 6.8時(shí),還報(bào)了另外一個(gè)錯(cuò)
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