liux 常用操作命令
tail -f /home/jyapp/apache-tomcat-7.0.59/logs/catalina.out //查看实施日志
//删除临时目录并且启动服务器
rm -rf /home/jyapp/apache-tomcat-7.0.59/work/* &
rm -rf /home/jyapp/apache-tomcat-7.0.59/temp/* &
/home/jyapp/apache-tomcat-7.0.59/bin/startup.sh
//杀掉进程并且重新启动服务器跳转到实施logxia
TOMCAT_PATH='/home/jyapp/apache-tomcat-7.0.59/'
PID=`ps -ef |grep $TOMCAT_PATH | grep -v grep |awk '{print $2}'`
#echo ${PID}
kill -9 ${PID}
cd $TOMCAT_PATH/bin
/bin/bash startup.sh >/dev/null
sleep 1
tail -f $TOMCAT_PATH/logs/catalina.out