es外网无法访问

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

network.host: 0.0.0.0

vi /etc/sysctl.conf中增加:

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账户启动。

 

posted @ 2019-05-04 11:28  谦逊的铅笔  阅读(2962)  评论(0)    收藏  举报