打包:
cd /root/.jenkins/workspace/hmap_3.0/HMAP_web/target/
scp HMAP.zip root@xxx.xxx.xxx.xxx:/data/application/HMAPV3
部署:
cd /data/application/HMAPV3
unzip HMAP.zip
rm -rf HMAP.zip
cd HMAP
nohup /data/java/jdk1.8.0_151/bin/java -jar HMAP.jar >/dev/null 2>&1 &
网友评论