【发布时间】: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