2017-02-10 2 views
1

Ich versuche, das logstash-input-jmx Plugin zu installieren, aber ich erhalte eineVerbindung verweigert Fehler, wenn sie versuchen Plugins zu installieren

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

Ich habe versucht, den Proxy zu setzen, bevor läuft, aber kein Glück:

#!/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" "[email protected]" 
:
export http_proxy=http://proxy.com:8099 
export https_proxy=http://proxy.com:8099 
./logstash-plugin install logstash-input-jmx 

ich habe die logstash-plugin Datei enthalten den Proxy wie diese bearbeitet 210

bekam aber den gleichen Fehler

Ich habe versucht, selbst diese Github Seite zu folgen: https://github.com/logstash-plugins/logstash-input-jmx

aber wenn ich zu bin/logstash-plugin install --no-verify ... Ich habe immer noch die gleichen Fehler ...

Antwort

0

Ich konnte das beheben, indem ich den Proxy zu 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 
hinzufügen
Verwandte Themen