2014-04-05 152 views
0

我對elasticsearch非常陌生。使用SSH,我已經能夠通過bin/elasticsearch運行它,如果我運行curl localhost:9200,我可以看到詳細信息並確認它正在運行。此外,我已經安裝了Marvel和Head,但我不確定如何從瀏覽器訪問這些GUI。訪問elasticsearch時遇到問題

該文檔說瀏覽到localhost:9200/_plugin/marvel,但顯然在我們的實時服務器上這不起作用。我嘗試用我的服務器IP替換localhost,但我什麼也沒得到。我錯過了什麼嗎?

針對Drew R.最新版本已安裝,並且在安裝後通過shutdown api重新啓動。

須藤IP表確實產生了很多降導致的,但我不能讓那(This policy will halt a connection to a host without any communication unless there is a target rule that applies.)

curl -vv server:9200/_plugin/marvel回到常識:

* About to connect() to server port 9200 (#0) 
* Trying 50.28.35.72... connected 
* Connected to server (50.28.35.72) port 9200 (#0) 
> GET /_plugin/marvel HTTP/1.1 
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 
> Host: server:9200 
> Accept: */* 
> 
< HTTP/1.1 301 Moved Permanently 
< Content-Type: text/html 
< Content-Length: 74 
< 
* Connection #0 to host server left intact 
* Closing connection #0 
<head><meta http-equiv="refresh" content="0; URL=/_plugin/marvel/"></head>[[email protected]  /usr/share/elasticsearch]# url -vv server:9200/_plugin/marvel 

回答

1

首先,仔細檢查你已經安裝奇蹟:

bin/plugin -i elasticsearch/marvel/latest 

然後重新啓動ES。你是否在日誌中的插件列表中看到它?

如果確實如此,請確保您沒有看到機器外部的端口9200(例如,sudo iptables -L)。如果是AWS,請確保您的安全組已打開。

如果不是這些,如果您運行curl -vv server:9200/_plugin/marvel,會得到什麼?

+0

感謝您的回覆。請參閱我的編輯。 – psorensen

+0

上面的重定向意味着你可以驚歎自己好。你在瀏覽器中看到什麼? *「上面的意思是什麼? – drewr

+0

9200港口已關閉。我已經打開它,現在一切正在工作。非常感謝您的幫助。 – psorensen