系统centos6.5
可以访问127.0.0.1:9200,但不能访问 公网IP:9200
后面ip就是127.0.0.1的局域网ip,如何解决?

修改配置文件 config/elasticsearch.yml

network.host: 0.0.0.0