下载地址:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.1.tar.gz
tar -xvf elasticsearch-6.6.1.tar.gz
groupadd elsearch
useradd elsearch -g elsearch -p elsearch
chown -R elsearch:elsearch /apps/elasticsearch-6.6.1
切换 elsearch用户
./elasticsearch -d
启动后,只能本机访问。如果需要添加外网访问操作下面步骤:
在安装路径下的config/elasticsearch.yml文件中,
添加 network.host: 0.0.0.0 表示所有用户可访问
按理说,应该可以访问了,但是
因为本人用的虚拟机是centos6.5,centos6不支持secComp,而elasticsearch5.2.0以上的版本默认bootstrap。system_call_filter为true进行检测,所以导致检测失败,失败后会导致es不能启动。
所以,继续在该文件添加
bootstrap.memory_lock: false
ootstrap.system_call_filter: false
启动后报错:错误信息
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
原因:进程不够用了
(1)切换到root用户,修改文件
vi /etc/security/limits.conf
root soft nofile 65536
root hard nofile 131072
* soft nofile 65536
* hard nofile 131072
* soft nproc 65536
* hard nproc 131072
(2)在切换到普通用户,使用命令查看进程数 已修改。
ulimit -Hu
ulimit -Su
启动后,可外网访问。
安装过程参考:
https://www.jianshu.com/p/692608b3b6f9

本文详细介绍了如何在CentOS 6.5上部署Elasticsearch 6.6.1,并解决部署过程中常见的问题,如配置网络访问、调整系统限制等。
1349

被折叠的 条评论
为什么被折叠?



