elasticsearch外网无法访问

今天在虚拟机上安装了一个ES 6.2.3

结果curl "http://127.0.0.1:9200" 能够正常访问,可是使用外网ip就提示拒绝链接

解决办法:vim config/elasticsearch.yml

增加:network.host: 0.0.0.0

重启问题解决


另外,个别虚拟机无法启动ES,查看日志如果有:

[2017-03-28T15:35:19,948][ERROR][o.e.b.Bootstrap          ] [kSH2rCN] node validation exception bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解决办法:切换root账户 vim /etc/sysctl.conf

增加一行  vm.max_map_count=655360

接着执行 sysctl -p

扫描二维码关注公众号,回复: 5650698 查看本文章

切回ES账户重新启动问题解决

转自:https://blog.csdn.net/buzaiqq/article/details/67637731

猜你喜欢

转载自blog.csdn.net/qq_29767087/article/details/79734988