elasticsearch-6.6.1安装(一)

下载地址:
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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值