Windows 7无法安装elasticsearch-head。在命令提示符中出现以下错误:
elasticsearch-2.4.0bin>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.0bin>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
For ElasticSearch => 5.0
1。在elasticsearch
中启用CORS配置/elasticsearch.yml:http.cors。启用:true
http.cors。Allow-origin: "*"
http.cors。允许方法:选项,头,GET, POST,放,删除
http.cors。allow-headers: X-Requested-With,X-Auth-Token,Content-Type, Content-Length
2。您必须在另一个服务器上运行它,像这样,例如:
(你需要NPM => 6)
转到:github.com/mobz/elasticsearch-head.git
donwload它
cd elasticsearch-headnpm安装npm run start
打开http://localhost: 9100/