我正试图通过JMX监控Tomcat。我正在使用jConsole在本地测试它。首先,我使用以下Java选项而不进行身份验证:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8050
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false因此,它运行得很好,但是如果我尝试使用身份验证,它不允许我启动Tomcat:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8050
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=./conf/jmxremote.password.template
-Dcom.sun.management.jmxremote.access.file=./conf/jmxremote.access你能帮我把它做好吗?我出什么问题了?
发布于 2016-07-07 10:47:03
tomcat监测文件提到,您需要将密码文件的权限设置为只由运行tomcat的用户读取。我可以看到您在windows中运行这个程序,并且您已经将all远程文件放在您的java安装中,几乎可以肯定您的计算机上的所有帐户都可以访问它。我会将它们移到tomcat安装中的conf目录,然后检查您的权限,然后再试一次。
https://stackoverflow.com/questions/38242914
复制相似问题