JMX-Authentifizierung

$ cd $JAVA_HOME/jre/lib/management
$ cp jmxremote.password.template jmxremote.password
$ chmod u=rw jmxremote.password
$ vi jmxremote.password

Legen Sie ein Kennwort für "monitorRole" und "controlRole":

monitorRole 12monitor
controlRole 55control

Dann nach wenn ich mit dem JMX-server auf meinem Rechner bekam ich folgenden Fehler.

# java -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.m
agement.jmxremote.authenticate=true  -Dcom.sun.management.jmxremote.ssl=false -D
java.rmi.server.host=47.168.96.31  com.example.Main
Error: Password file read access must be restricted: /root/Downloads/jdk1.6.0_29
/jre/lib/management/jmxremote.password

Wenn ich die Datei ändern, die Erlaubnis mit dem oen der folgenden Befehle ein jmx-server funktioniert.

# chmod 400  jmxremote.password

oder

# chmod 600  jmxremote.password

Aber ich konnte nicht verbinden Sie es über Benutzername/Passwort definiert in jmxremote.Passwort-Datei

InformationsquelleAutor Ahmet Karakaya | 2012-05-15

Schreibe einen Kommentar