您的位置:首页 > Web前端 > Node.js

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

2016-04-27 17:50 716 查看
问题:在内网测试的时候可以正常访问,但是部署到外网上客户端连接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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: