tomcat 配置开启 jconsole 远程监控 linux上

[root@localhost bin]# vim catalina.sh

搜索 ---- Execute The Requested Command ---------

/- Execute The Requested Command -----------------------------------------

CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=192.168.244.128 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

加上上面这段

[root@localhost bin]# ./startup.sh

[root@localhost bin]# netstat -ntlp

猜你喜欢

转载自blog.csdn.net/qq2531246791/article/details/84313145
今日推荐