Windows离线安装elasticsearch插件

Offline installation of elasticsearch plug-ins for Windows

我正在尝试安装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

从错误信息中的路径(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>plugin -DproxyPort=number -DproxyHost=hostname_or_ip install <plugin>