无法使用 bin/plugin 工具 (elasticsearch) 安装 head 插件

Cannot install head plugin using bin/plugin tool (elasticsearch)

我刚刚下载了elasticsearch and I am trying to grab the head plugin

我先试试这个

sudo bin/plugin install mobz/elasticsearch-head --verbose

我收到错误

Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Failed: UnknownHostException[github.com]

现在我尝试添加一些命令行参数

sudo bin/plugin -DproxyUser=<my proxy user> -DproxyPassword=<my proxy password> -DproxyHost=<my proxy user> -DproxyPort=<my proxy port> install mobz/elasticsearch-head --verbose

现在我得到了错误

Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Failed: IOException[Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"]

有人在这里有什么建议吗?我正在尝试使用 elasticsearch 附带的工具,而不是手动获取插件并将其放入插件文件夹中。

您可能需要在参数中指定代理信息,例如主机和端口。检查此文档。 https://www.elastic.co/guide/en/elasticsearch/plugins/2.3/_other_command_line_parameters.html#_proxy_settings