環境:java
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
./bin/catalina.sh run &
鏈接:tomcat
[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.
文件傳輸:bash
[2017/12/23 20:47] Uploading to 192.168.19.200 completed in less than a minute: 357 files transferred (8 Mbit/s)
這樣就可以成功遠程部署而且調試了。服務器
使用的技巧:
這樣每次修改完,點一下就能夠熱部署,是否是很方便。less