#!/bin/bash
#!/bin/bash
for j in $(ps -ef |grep tomcat |awk '{print $2}')
do
kill $j
done
rootdir="/usr/local/java/apache-tomcat-7.0.56/webapps/ROOT"
rootwar="/usr/local/java/apache-tomcat-7.0.56/webapps/ROOT.war"
if [ -d "$rootdir" ]; then
echo "remove $rootdir"
rm -rf $rootdir
fi
if [ -f "$rootwar" ]; then
echo "remove $rootwar"
rm $rootwar
fi
cd /usr/local/java/apache-tomcat-7.0.56/bin
./startup.sh
shell kill tomcat 进程 删除 ROOT 启动 tomcat
最新推荐文章于 2022-07-08 21:48:05 发布