jenkins重启linux环境下 tomcat
BUILD_ID=pleaseDontKillMeecho '停止tomcat'for pid in $(ps -ef|grep /usr/local/tomcat_release|grep -v grep|cut -c 10-15);doecho $pid;kill -9 $pid;echo '停止tomcat成功';done;echo '启动tomcat'
·
BUILD_ID=pleaseDontKillMe
echo '停止tomcat'
for pid in $(ps -ef|grep /usr/local/tomcat_release|grep -v grep|cut -c 10-15);
do
echo $pid;
kill -9 $pid;
echo '停止tomcat成功';
done;
echo '启动tomcat'
rm -rf /usr/local/tomcat_release/logs/*
rm -rf /usr/local/tomcat_release/temp/*
rm -rf /usr/local/tomcat_release/work/*
cd /usr/local/tomcat_release/bin
./startup.sh
更多推荐
已为社区贡献1条内容
所有评论(0)