发布于 2017-04-09 11:31:24 | 3136 次阅读 | 评论: 0 | 来源: PHPERZ
service iptables stop
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
export JAVA_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'
set JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
vim /usr/program/tomcat7/bin/catalina.sh
(Windows 是编辑:catalina.bat)
export JAVA_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'
。-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
就可以了。
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar {your jetty path} {your port} --path {your war} 1>/dev/null 2>&1 &