![](/img/trans.png)
[英]Elasticsearch - '127.0.0.1:9200' and 'localhost:9200' are unable to connect on the browser
[英]Elasticsearch is running, but can not connect to :9200 port
大约两个月前我通过brew install
在OSX(Mavericks)上建立了Elasticsearch,事情进展顺利。
然后我转移到另一个项目,运行brew update
一次。 目前的elasticsearch版本是elasticsearch: 1.2.0
当我运行elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
作为brew info
建议时,服务按预期启动:
[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]]
有人可以帮忙吗? 谢谢:)这是冲洗所有数据,因为只有我的本地环境有这个问题。
brew remove elasticsearch
并重新安装,不工作 问题解决了。
这是我使用的代理服务导致503错误,关闭它,一切都很好:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.