tomcat设置远程监听端口(linux&windows)

1、Linxu系统: apach/bin/startup.sh开始处中增加如下内容:
declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8081"

2、Windows系统: apach/bin/startup.bat开始处中增加如下内容:
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8081

猜你喜欢

转载自www.cnblogs.com/sung1024/p/11391907.html