连接拒绝弹性搜索错误 [英] Connection refused error on Elastic Search
问题描述
当我尝试使用
curl http:// localhost:9200
连接到弹性搜索时,这是正常的。
但是当我运行 curl http:// IpAddress:9200
时,会发出错误,说连接拒绝端口9200 <
默认情况下,它应绑定到所有本地地址。因此,假设您没有防火墙的网络层问题,我可以考虑检查的唯一ES设置是 network.bind_host
,并确保它未设置或设置为 0.0.0.0
或 :: 0
或您网络的正确IP地址。
更新:ES 2.3中的注释,您应该设置 network.host
。
When I tried connecting to Elastic Search using the
curl http://localhost:9200
it is working fine.
But when I run the curl http://IpAddress:9200
it is throwing an error saying connection refused port 9200
.
How to resolve this error?
By default it should bind to all local addresses. So, assuming you don't have a network layer issue with firewalls, the only ES setting I can think to check is network.bind_host
and make sure it is either not set or is set to 0.0.0.0
or ::0
or to the correct IP address for your network.
Update: per comments in ES 2.3 you should set network.host
instead.
这篇关于连接拒绝弹性搜索错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!