tomcat代码备份,替换上传

压缩:
cd /mnt/hgfs/sharelinux/projectbak
rm -rf scanner.zip
cd /root/apache-tomcat-8.0.18/webapps
zip -r /mnt/hgfs/sharelinux/projectbak/scanner.zip ./scanner
解压:
ps -ef|grep tomcat
kill -9

cd /home/projectbak/
unzip scanner0624.zip -d /home/start/project/scan_front
cd /home/start/project/scan_front
mv scanner scanner7.0

cd /home/start/project/scan_front/apache-tomcat-8.0.22/logs
tail -f catalina.out
rm -rf /home/projectbak/scanner7.0

 

 

 

 

 

 

 

 

你可能感兴趣的:(tomcat代码备份,替换上传)