我有一个Tomcat 8实例。我试图从JColsole连接到它。为此,我已将setenv.bat
添加到以下行:
CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote.password.file=D:\Utils\Apache\Tomcat\conf\remote.users -Dcom.sun.management.jmxremote.access.file=D:\Utils\Apache\Tomcat\conf\remote.acl -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7777 -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost
并在这两个文件中remote.users
和remote.acl
我已使用密码 test 定义了用户 test ,并且读取了该角色。
但是我无法通过JConsole连接(我尝试使用网址localhost:7777
和service:jmx:rmi://localhost:7777
)。
进一步调查显示,我甚至无法远程登陆7777.
我做错了什么?
答案 0 :(得分:0)
实际上,当Tomcat在Windows上作为服务运行时,我不需要setenv.bat
,我需要使用tomcat8w.exe
- GUI收费来添加选项