1、在tomcat的start.bat中添加下面代码,
set JMX_REMOTE_CONFIG=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=40200 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=localhost set CATALINA_OPTS=%CATALINA_OPTS% %JMX_REMOTE_CONFIG%
注意:不能放在最后,可以放在setlocal前
2、cmd命令下输入netstat -an,查看端口使用情况,看看是否有上面的40200,如果有,则配置成功。
原文:http://www.cnblogs.com/kzfy/p/5502728.html