linuxtomcat一键维护脚本系

时间:2021-10-15 13:33:27

作者:admin

来源:纯净之家


系统大全为您提供
 
  <span style="font-family: Arial, Helvetica, sans-serif;">#! /bin

</span>
a="/usr

/tomcat7/webapps/ROOT"
b="/usr

/tomcat7/webapps/ROOT.war"
c="ROOT.war"
tomcat_stop="/usr

/tomcat7/bin

utdown.sh"
sh "$tomcat_stop"
ps aufx | grep tomcat | grep root | awk '{print $2}' | xargs kill -9
rm -rf /usr

/tomcat7/logs/catalina.out
if [ -d "$a" ]; then
rm -r "$a"
fi

if [ -f "$b" ]; then
        rm  "$b"
fi

if [ -f "$c" ]; then
cp "$c" "$b"
fi
d="/usr

/tomcat7/bin/startup.sh"
sh "$d"
sleep 10
chmod +x work.sh 
  
  以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统大全官网吧。 
 
本文来自系统大全http://www.win7cn.com/如需转载请注明!推荐:win7纯净版

系统下载排行榜71011xp

提取码
XGZS
关闭 前往下载