小计IDEA远程部署服务器


idea maven远程部署服务器

1、配置 远程服务器tomcat的相关配置:
修改tomcat目录下的 bin/catalina.sh文件
添加相关的配置

export CATALINA_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
#hostname是服务器的ip地址
-Djava.rmi.server.hostname=192.168.1.10"

export JAVA_OPTS="-Dcom.sun.management.jmxremote=
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"

以上配置相当于给本地idea一个权限,jmx端口和hostname在idea中都需要配置

2、配置IDEA

1、Tools-->Deployment-->Configuration 里面设置远程服务器信息
选择文件上传方式为sftp

2、配置tomcat远程部署
在添加tomcat栏目中可以选择本地或者远程remote,这里需要选择remote部署
在里面配置服务器信息,以及要上传的目录,/var/webapp/tomcat/webapps/
在服务器里面配置

配置完成可以测试连接是否成功

然后直接启动本地服务器,在看则文件已经上传到远程服务器了

======================================

 具体记录,有空的时候贴出

转载于:https://www.cnblogs.com/dayu007/p/10290307.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值