gpt4 book ai didi

ruby-on-rails - Elasticsearch 正在运行,但无法连接到 :9200 port

转载 作者:行者123 更新时间:2023-11-29 02:56:26 25 4
gpt4 key购买 nike

大约两个月前,我通过 brew install 在 OSX (Mavericks) 上设置了 Elasticsearch,一切正常。

然后我转到另一个项目,运行一次 brew update。当前的elasticsearch版本是elasticsearch: 1.2.0

当我按照 brew info 的建议运行 elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml 时,服务按预期启动:

[2014-05-26 14:26:15,916][INFO ][node                     ] [Red Nine] version[1.2.0], pid[10747], build[c82387f/2014-05-22T12:49:13Z]
[2014-05-26 14:26:15,916][INFO ][node ] [Red Nine] initializing ...
[2014-05-26 14:26:15,921][INFO ][plugins ] [Red Nine] loaded [], sites []
[2014-05-26 14:26:17,947][INFO ][node ] [Red Nine] initialized
[2014-05-26 14:26:17,947][INFO ][node ] [Red Nine] starting ...
[2014-05-26 14:26:18,039][INFO ][transport ] [Red Nine] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[/127.0.0.1:9300]}
[2014-05-26 14:26:21,070][INFO ][cluster.service ] [Red Nine] new_master [Red Nine][EytfiY9TRtmihwuNF9SieQ][geckos-mbp][inet[/127.0.0.1:9300]], reason: zen-disco-join (elected_as_master)
[2014-05-26 14:26:21,093][INFO ][discovery ] [Red Nine] elasticsearch_Gecko/EytfiY9TRtmihwuNF9SieQ
[2014-05-26 14:26:21,105][INFO ][http ] [Red Nine] bound_address {inet[/127.0.0.1:9200]}, publish_address {inet[/127.0.0.1:9200]}
[2014-05-26 14:26:21,115][INFO ][gateway ] [Red Nine] recovered [0] indices into cluster_state
[2014-05-26 14:26:21,115][INFO ][node ] [Red Nine] started

但是当我尝试 curl -XGET http://localhost:9200 时,它会返回 503 错误。

日志中曾经有过WARN,但是启动日志是好的,如上图:

[2014-05-26 13:04:22,192][WARN ][cluster.metadata         ] [Balder] [video_interviews_development_20140310134134379] re-syncing mappings with cluster state for types [[video_interview]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [sections_development_20140310134135051] re-syncing mappings with cluster state for types [[section]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [announcements_development_20140310134133810] re-syncing mappings with cluster state for types [[announcement]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [articles_development_20140310134134125] re-syncing mappings with cluster state for types [[article]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [courses_development_20140310134134846] re-syncing mappings with cluster state for types [[course]]

有人可以帮忙吗?谢谢 :) 刷新所有数据就可以了,因为只有我的本地环境有这个问题。

更多信息

  • 我还没有接触过 elasticsearch.yml 文件
  • 试过 brew remove elasticsearch 并重新安装,但没有用

最佳答案

问题解决了。

这是我使用的代理服务导致 503 错误,将其关闭后一切正常:)

关于ruby-on-rails - Elasticsearch 正在运行,但无法连接到 :9200 port,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23864078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com