在默认情况下Elasticsearch是无法通过外网访问的

需要绑定地址,原因如下:

解决只能通过localhost访问Elasticsearch的问题

 

具体方法为:

vim /opt/es/elasticsearch-5.1.2/config/elasticsearch.yml

注意前面是我自己的安装路路径(对新手老生常谈的坑)添加无#号的一行

network.host: 0.0.0.0

解决只能通过localhost访问Elasticsearch的问题

 

好啦,如果你的Elasticsearch其他配置都ok的话,你就可以启动浏览器,输入你的ip+9200,正常地通过外网进行访问了

解决只能通过localhost访问Elasticsearch的问题

 

相关文章:

  • 2021-12-16
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-04-07
  • 2022-01-13
猜你喜欢
  • 2021-12-13
  • 2022-02-24
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
相关资源
相似解决方案