无法在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 :(得分:0)
对于ElasticSearch => 5 现在,作为Elasticsearch插件运行的安全问题已被弃用。
1。在elasticsearch中启用CORS
配置/ elasticsearch.yml:
http.cors.enabled:true
http.cors.allow-origin:“*”
http.cors.allow-methods:OPTIONS,HEAD,GET,POST,PUT,DELETE
http.cors.allow-headers:X-Requested-With,X-Auth-Token,Content-Type,Content-Length
<强> 2。你必须在另一台服务器上运行它,例如:
(你需要npm =&gt; 6)
转到:github.com/mobz/elasticsearch-head.git
下载
cd elasticsearch-head
npm install
npm run start
它对我有用。