LINUX系统自动化部署shell脚本

#!/bin/sh
sudo /etc/init.d/tomcatstop
wait
sudo rm -rf /opt/tomcat7/work/*
wait
sudo rm -rf /opt/tomcat7/webapps/shtic/*
wait
sudo cp -R  /home/gjcai/testbuild/* /opt/tomcat7/webapps/shtic/
wait
sudo chown -Rf tomcat:tomcat /opt/tomcat7/webapps/shtic/*
wait
sudo rm -rf /home/gjcai/testbuild/*
sudo /etc/init.d/tomcatstart
echo "tomcatstart"

上一篇:ES6新增对象方法的访问描述符:get(只读)、set(只写)


下一篇:windows7 iis安装与配置