ElasticSearch 本机可以访问,外网无法访问----问题解决

问题:本机可以访问,外网无法访问

config/elasticsearch.yml

network.host: 0.0.0.0

使用普通用户zuoys,重启es,报错如下:

 

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

[root@cent7-zuoys config]# su root
[root@cent7-zuoys config]# vim /etc/security/limits.conf

# 在最后面追加下面内容,zuoys为启动es的用户名
zuoys hard nofile 65536
zuoys soft nofile 65536

[2]: max number of threads [3780] for user [zuoys] is too low, increase to at least [4096]

[root@cent7-zuoys config]# vi /etc/security/limits.d/90-nproc.conf

*          soft    nproc     4096
root       soft    nproc     unlimited
*          hard    nproc     4096

[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

[root@cent7-zuoys limits.d]# vi /etc/sysctl.conf
#新增
vm.max_map_count=262144

最后,重启电脑。

验证:

成功。

 

posted @ 2019-05-28 11:20  遥远2  阅读(1247)  评论(0)    收藏  举报