[英]what exactly the parameters are needed for authentication to Connect JMX agent on windows?
我測試了以下參數,但只有在 Linux 上我才能讓它工作。
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.port=${startport:9977}
-Dcom.sun.management.jmxremote.ssl=false `
com.sun.management.jmxremote.password.file=/opt/.../jre/lib/management/jmxremote.password
com.sun.management.jmxremote.access.file=/opt/.../jre/lib/management/jmxremote.access
但是使用以下參數,在 windows 上我無法讓它工作。
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.port=${startport:9977}
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.password.file=C:/.../jre/lib/management/jmxremote.password
-Dcom.sun.management.jmxremote.access.file=C:/.../jre/lib/management/jmxremote.access
我認為我在提供文件路徑時做錯了。 請幫我解決這個問題。
我通過授予對 jmxRemote.password 文件的只讀訪問權限來解決此問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.