2016-11-14 125 views
0

無法在Windows 7中安裝elasticsearch-head。在命令提示符下獲取以下錯誤。無法在Windows 7中安裝elasticsearch-head

elasticsearch-2.4.0\bin>plugin install mobz/elasticsearch-head 
Installing mobz/elasticsearch-head... 
ing https://github.com/mobz/elasticsearch-head/archive/master.zip ... 
OR: failed to download out of all possible locations..., use --verbose to get detailed information 

如何解決?

[更新]

C:\elasticsearch-2.4.0\bin>plugin.bat install mobz/elasticsearch-head --verbose 
-> Installing mobz/elasticsearch-head... 
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ... 
Failed: SocketTimeoutException[connect timed out] 
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information 
+0

'使用--verbose獲取詳細信息'你可以嘗試並更新你的問題與額外的信息? – Val

+0

這是使用--verbose的正確方法嗎?插件安裝mobz/elasticsearch-head --verbose – meshsf

+0

是的,試試看,你會得到什麼? – Val

回答

0

對於ElasticSearch => 5.0 運行作爲Elasticsearch的插件現在已經過時的安全性問題。

1。啓用elasticsearch CORS

配置/ elasticsearch.yml:

http.cors.enabled:真

http.cors.allow原產地: 「*」

http.cors.allow - 方法:OPTIONS,HEAD,GET,POST,PUT,DELETE

http.cors.allow報頭:X-請求-隨着,X-AUTH-令牌,內容類型,內容長度

2.你必須在另一臺服務器上運行它,像這樣的例子:

(需要NPM => 6)

去:github.com/mobz/elasticsearch-head.git
donwload它

CD elasticsearch頭

NPM安裝

NPM運行開始

開放http://localhost:9100/

它爲我工作。