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

Posted sung1024

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于tomcat设置远程监听端口(linux&windows)的主要内容,如果未能解决你的问题,请参考以下文章