【问题标题】:connection refused error when trying to install plugins尝试安装插件时连接被拒绝错误
【发布时间】:2017-02-11 06:47:17
【问题描述】:

我正在尝试安装logstash-input-jmx 插件,但我不断收到一个

ERROR: Something went wrong when installing , message: Connection refused - Connection refused

我尝试在运行前设置代理但没有成功:

export http_proxy=http://proxy.com:8099
export https_proxy=http://proxy.com:8099
./logstash-plugin install logstash-input-jmx

我已经编辑了logstash-plugin 文件以包含这样的代理:

#!/bin/sh

unset CDPATH
. "$(cd `dirname $0`/..; pwd)/bin/logstash.lib.sh"
setup

# bin/logstash-plugin is a short lived ruby script thus we can use aggressive "faster starting JRuby options"
# see https://github.com/jruby/jruby/wiki/Improving-startup-time
export JRUBY_OPTS="$JRUBY_OPTS -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C -Xcompile.invokedynamic=false"
export http_proxy=http://proxy.com:8099
export https_proxy=http://proxy.com:8099
ruby_exec "${LOGSTASH_HOME}/lib/pluginmanager/main.rb" "$@"

但遇到同样的错误

我什至尝试关注这个 github 页面:https://github.com/logstash-plugins/logstash-input-jmx

但是当我到达bin/logstash-plugin install --no-verify...我仍然遇到同样的错误...

【问题讨论】:

    标签: ruby elasticsearch logstash


    【解决方案1】:

    我可以通过将代理添加到 LS_JAVA_OPTS 来解决此问题

    LS_JAVA_OPTS='-Dhttp.useProxy=true -Dhttp.proxyHost=http://proxy.com -Dhttp.proxyPort=8099 -Dhttps.proxyHost=http://proxy.com -Dhttps.proxyPort=8099' ./logstash-plugin install logstash-input-jmx
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-16
      • 2017-02-28
      • 1970-01-01
      • 2020-05-23
      • 2019-10-20
      相关资源
      最近更新 更多