elasticsearch报错:None of the configured nodes are available: []

问题:在内网测试的时候可以正常访问,但是部署到外网上客户端连接elasticsearch报错:None of the configured nodes are available: []
原因:默认情况下,ElasticSearch使用0.0.0.0地址,并为http传输开启9200-9300端口,为节点到节点的通信开启9300-9400端口,部署到外网修改修改elasticsearch.yml配置
操作:
修改elasticsearch.yml
将network.host、transport.tcp.port、http.port重新配置成自己真实的ip即可
这里写图片描述
重新启动es即可
具体配置说明请看http://blog.csdn.net/lu_wei_wei/article/details/51263153

posted @ 2016-04-27 17:50  奋斗鹿  阅读(938)  评论(0编辑  收藏  举报