标签:add address .sh 服务器 end transport error centos ...
环境:
在catalina.sh
文件中加入以下的配置
CATALINA_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=192.168.19.200
-agentlib:jdwp=transport=dt_socket,address=15833,suspend=n,server=y"
export CATALINA_OPTS
启动tomcat
使用命令启动
./bin/catalina.sh run &
连接:
[2017-12-23 08:47:03,592] Artifact devframe-server:war exploded: Artifact is not deployed. Press ‘Deploy‘ to start deployment
[2017-12-23 08:47:03,650] Artifact devframe-server:war exploded: Artifact is being deployed, please wait...
Connected to server
Connected to the target VM, address: ‘192.168.19.200:15833‘, transport: ‘socket‘
[2017-12-23 08:47:11,434] Artifact devframe-server:war exploded: Error during artifact deployment. See server log for details.
文件传输:
[2017/12/23 20:47] Uploading to 192.168.19.200 completed in less than a minute: 357 files transferred (8 Mbit/s)
这样就能够成功远程部署并且调试了。
使用的技巧:
这样每次修改完,点一下就可以热部署,是不是很方便。
标签:add address .sh 服务器 end transport error centos ...
原文地址:https://www.cnblogs.com/qnight/p/8983145.html