标签:
#!/bin/sh
mm_pid=`ps -ef | grep apache-mm-admin/ | grep -v grep | awk ‘{print $2}‘`
echo "理财管理后台当前的PID为$mm_pid"
cd /usr/local/dd/200.pf/apache-mm-admin/webapps
rm -rf ROOT*
cp /usr/local/dd/200.pf/jenkins/workspace/mm-admin/target/ROOT.war /usr/local/dd/200.pf/apache-mm-admin/webapps/
cd ../bin/
kill -9 $mm_pid
./startup.sh
cd ../logs/
tail -f catalina.out
标签:
原文地址:http://www.cnblogs.com/jysemel/p/4836365.html