ElasticSearch-实战-集群搭建-CentOS7踩坑

搭建过程与windows下类似-参考:

https://blog.csdn.net/taotao_guiwang/article/details/97269613

CentOS7问题总结如下:

1.关闭防火墙
2.关闭SELINUX

https://blog.csdn.net/taotao_guiwang/article/details/98733499
3.设置静态IP

https://blog.csdn.net/taotao_guiwang/article/details/98472945
4.新建非root用户执行
文件夹递归授权(chmod -R 777 文件夹)

adduser ***   //添加用户
passwd ***  //给用户赋值
chown -R 用户名 文件夹名
切换到es用户再启动
su es
./elasticsearch

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

切换到root用户修改配置limits.conf
vim /etc/security/limits.conf
es soft nofile 65535
es hard nofile 65537

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

切换到root用户修改配置sysctl.conf
vim /etc/sysctl.conf
vm.max_map_count=655360
sysctl -p

 

你可能感兴趣的:(Elasticsearch)