在vi config/elasticsearch.yml 中的network下添加如下内容:

network.host: 0.0.0.0

vi /etc/sysctl.conf中增加:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
vm.max_map_count=655360

接着执行 sysctl -p

vi /etc/security/limits.conf中(brian为es的启动账户)

brian soft nofile 65536
brian hard nofile 131072
* soft nofile 2048
* hard nofile 131072

kill掉所有es的进程,重启就行了。再不好就重启服务器(不建议,个人的到可以)

注意,不能是root账户启动。

es外网无法访问 随笔 第1张

es外网无法访问 随笔 第2张

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄