linux重啟tomcat腳本:
tomcat_home=/opt/apache-tomcat-6.0.32
ps -ef |grep tomcat |awk {'print $2'} | sed -e "s/^/kill -9 /g" | sh -
rm $tomcat_home/logs/* -rf
rm $tomcat_home/work/* -rf
$tomcat_home/bin/startup.sh
tail -f $tomcat_home/logs/catalina.out
保存為restart.sh
執(zhí)行就可以了。
|----------------------------------------------------------------------------------------|
版權(quán)聲明 版權(quán)所有 @zhyiwww
引用請(qǐng)注明來(lái)源 http://www.aygfsteel.com/zhyiwww
|----------------------------------------------------------------------------------------|