连接拒绝弹性搜索错误

连接拒绝弹性搜索错误

本文介绍了连接拒绝弹性搜索错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 当我尝试使用 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 thecurl 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. 这篇关于连接拒绝弹性搜索错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 07:48