昨天在服务器上拷贝了一个tomcat项目,修改了server.xml之后启动居然报错ERROR:transport error 202:bind failed:Address already,应该是远程调试的端口重复占用了,打开startup.sh,把以下行注释掉即可:
//linux
declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888" //windows
SET CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888"
注意 0.0.0.0很重要
转载请注明博客出处:http://www.cnblogs.com/cjh-notes/