#!/bina="/usr/tomcat7/webapps/ROOT"b="/usr/tomcat7/webapps/ROOT.war"c="ROOT.war"tomcat_stop="/usr/tomcat7/binutdown.sh"sh"$tomcat_">

linuxtomcat一键维护脚本系

来源:互联网 时间:2026-02-26 11:32:28 作者:

系统大全为您提供
 
  <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   
  以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统大全官网吧。 
 
本文来自系统大全https://www.herecours.com/d/file/efpub/2026/26-26/20260226111836566389

相关推荐