#!/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
时间: 2024-10-28 13:30:32