http://blog.csdn.net/u010414666/article/details/52060050
http://blog.csdn.net/tianjun2012/article/details/52795202
http://www.jetbrains.com/help/idea/run-debug-configuration-tomcat-server.html#d17085e2989
远程 部署
1 服务器配置
vi 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.0.50"
启动 ./catalina.sh start
2 idea 配置
1. tomcat server remoting
2.server
jmx port :1099
type:sftp
path from root :/
mapped as : E:\idea\sheku2.0\target\artifacts\wp_war_exploded
remote connection settings : host:<host> port:1099
3.deployment
选择war
3 deployment server 配置
type:sftp
port:远程服务的特定端口 如22
Root path: /opt/apache-tomcat-8.5.20/webapps/
4 over