簡體   English   中英

我正在嘗試使用jconsole連接到具有身份驗證的JMX,但我無法這樣做。 但是我無需身份驗證就可以連接它

[英]I am trying to connect to JMX with authentication using jconsole, but I am not able to do so. But I am able to connect it without authentication

我已將其設置為java_opts

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=$TOMCAT_DIR/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=$TOMCAT_DIR/conf/jmxremote.access  -Djava.rmi.server.hostname=$APP_SERVER_HOSTNAME"

在雄貓。

如果Dcom.sun.management.jmxremote.authenticate設置為false,則可以使用jconsole進行連接而無需任何身份驗證。 但是,如果身份驗證為真,則無法連接。

您是否編輯了jmxremote.access和jmxremote.password?

例如:

$ vi $TOMCAT_DIR/conf/jmxremote.access
# Add "admin" account permission as follows:
admin         readwrite \
              create javax.management.monitor.*,javax.management.timer.* \
              unregister

$ vi $TOMCAT_DIR/conf/jmxremote.password
# Add "admin" account password as follows:
admin password

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM