脱机安装适用于Windows的elasticsearch插件

时间:2016-03-08 09:32:37

标签: windows elasticsearch proxy elasticsearch-plugin

我正在尝试为elasticsearch安装许可插件,但是 我的代理拒绝连接。当我执行命令plugin install license时,我收到错误:

C:\elasticsearch-2.2.0\bin>plugin install license
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugi
n/license/2.2.0/license-2.2.0.zip ...
Failed: ConnectException[Connection refused: connect]
ERROR: failed to download out of all possible locations..., use --verbose to get
 detailed information

1 个答案:

答案 0 :(得分:0)

从错误消息(https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.2.0/license-2.2.0.zip)中的路径下载文件并将其放入„C:\“ 然后在cmd中执行以下命令

C:\ elasticsearch-2.2.0 \ BIN> plugin install file:"C:\license-2.2.0.zip"

替代: 您可以使用

指定代理

C:\ elasticsearch-2.2.0 \ BIN&GT; plugin -DproxyPort=number -DproxyHost=hostname_or_ip install <plugin>