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的进程,重启就行了。再不好就重启服务器(不建议,个人的到可以)

猜你喜欢

转载自www.cnblogs.com/two-bees/p/10807979.html