我测试了下面的参数,但是只有在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我想我在提供文件路径方面做错了什么。请帮我解决这个问题。
发布于 2022-01-11 13:11:09
我通过提供对jmxRemote.password文件的只读访问来解决这个问题。
https://stackoverflow.com/questions/70498383
复制相似问题