1.点击红线按钮开始创建每一个步骤。
2.上传classes.zip包到远程tomcat的webapp下
target:172.16.20.200:/home/softislandinter/apache-tomcat-8.0.26/webapps/ROOT/WEB-INF
sources:D:/eclipsejavaee/csgo2.0/src/main/webapp/WEB-INF/classes.zip
commands:
cd /home/softislandinter/apache-tomcat-8.0.26/webapps/ROOT/WEB-INF
pwd
rm -rf classes
rm -rf jsp
unzip classes.zip
4.上传配置文件到远程地址
target:
172.16.20.200:/home/softislandinter/apache-tomcat-8.0.26/webapps/ROOT/WEB-INF/classes
sources:D:/eclipsejavaee/dbconfig.properties
5.重启tomcat
commands: 杀掉tomcat的8086端口
cd /home/softislandinter/apache-tomcat-8.0.44/bin
kill -9 $(netstat -tlnp | grep :8086 | awk '{print $7}' | awk -F '/' '{print $1}')
./startup.sh
6.运行