为什么不将Elasticsearch连接到Localhost:9200?

发布于 2025-02-03 20:09:39 字数 1190 浏览 4 评论 0 原文

感谢您的帮助。

我下载了弹性搜索并在Mac的终端中, 它说状态是绿色的。

但是,如果我输入我的浏览器:localhost:9200,它在Firefox上说“连接已重置”,并且“此页面没有WorkingLocalhost在Chrome上没有发送任何数据”。

Kibana也正确下载了,我能够进入Localhost:5601没问题,我可以看到我应该看到的ES界面。

为什么我无法访问Localhost:9200?我在jupyter中尝试了这一点,并获得了错误的回报:

也许在状态从黄色变为绿色后不久,终端中有一个暗示?警告的代码行一直重复...

确实可以对此提供一些帮助,这是一个与ES的菜鸟,但真的想学习!谢谢你!

更新:@Sagar Patel这是我的YML文件的样子。绝对必须是引起问题的问题。 (如@fuzzy_logic提供的线程所建议的,我将网络主机切换为.0.0.0.0)。

thanks for your help.

I downloaded Elastic Search and in the terminal of my mac,
it says that the status is green.

green status terminal

But if I type in to my browser: localhost:9200 it says "the connection was reset" on Firefox and "This page isn’t workinglocalhost didn’t send any data. ERR_EMPTY_RESPONSE" on Chrome.

Kibana also downloaded correctly and I was able to get into the localhost:5601 no problem where I can see the ES interface I think I am supposed to see.

Why can't I access localhost:9200? I tried this in jupyter and got a false return:
Jupyter

Maybe there is a hint right here in the terminal shortly after the status changed from yellow to green? lines of code that say WARN keep repeating...
Warn terminal?

Could really use some help on this please, am a total noob with ES but really want to learn! Thank you!

UPDATE: @Sagar Patel Here is what my yml file looks like. Definitely has to be some issue in here that is causing the problem. (I switched my network host to .0.0.0.0 as suggested in the thread provided by @fuzzy_logic).

enter image description here
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时间你老了 2025-02-10 20:09:39

tldr;

在您上次屏幕截图中,我们可以以下错误 ...在HTTPS频道上收到的明文http流量,关闭连接...

您的elasticsearch似乎会期望 https and不是 http

修复

es = Elasticsearch("https://localhost:9200"
    verify_certs=False) # <- Optional, only if you face issue with verifying the certificate

Tldr;

In you last screen shot we can the the following error ... received plaintext http traffic on an https channel, closing connection ...

Your Elasticsearch seems to be expecting Https and not http

To fix

es = Elasticsearch("https://localhost:9200"
    verify_certs=False) # <- Optional, only if you face issue with verifying the certificate
囍孤女 2025-02-10 20:09:39

我正在使用Windows平台。

尝试使用[https:// localhost:9200/] [1]而不是http:// localhost:9200以

获取更多详细信息,请检查此 https://stackoverflow.com/a/73842343/9947525

最好的解决方案是使用Elk Stack的Docker Image Image Image,这很容易下载,而不是下载麋鹿,然后在本地机器。
[1]:https:// localhost:9200/

I'm using the windows platform.

try to use [https://localhost:9200/][1] instead of http://localhost:9200

For more details kindly check this https://stackoverflow.com/a/73842343/9947525

But

the best solution is to use Docker Image of ELK stack which is easy instead of downloading the E L K and then run on the local machine.
[1]: https://localhost:9200/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文