linux查看log
Posted 也许还年轻
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux查看log相关的知识,希望对你有一定的参考价值。
TOMCAT_PATH=‘/home/jyapp/apache-tomcat-7.0.59/‘
PID=`ps -ef |grep $TOMCAT_PATH | grep -v grep |awk ‘{print $2}‘`
kill -9 ${PID}
cd $TOMCAT_PATH/bin
/bin/bash startup.sh >/dev/null
sleep 1
tail -f $TOMCAT_PATH/logs/catalina.out
---删除
rm -fr /home/jyapp/masterdata/WEB-INF/lib/com-jy-masterdata-product*
#rm -fr /home/jyapp/masterdata/WEB-INF/lib/com-jy-platform-orguser-server*
TOMCAT_PATH=‘/home/jyapp/apache-tomcat-7.0.59/‘
TOMCAT_PATH1=‘/home/jyapp/apache-tomcat-7.0.59-193/‘
PID=`ps -ef |grep $TOMCAT_PATH | grep -v grep |awk ‘{print $2}‘`
kill -9 ${PID}
PID1=`ps -ef |grep $TOMCAT_PATH1 | grep -v grep |awk ‘{print $2}‘`
kill -9 ${PID1}
cd cms
rm -rf *
jar -xvf /home/jyapp/cms.war
cp /home/jyapp/addCmsTBasicInfo.jsp /home/jyapp/cms/WEB-INF/jsp/collateral/cmstbasicinfo/addCmsTBasicInfo.jsp
cp -R /home/jyapp/xml_back/* /home/jyapp/cms/WEB-INF/classes
cd $TOMCAT_PATH/bin
/bin/bash startup.sh >/dev/null
sleep 1
tail -f $TOMCAT_PATH/logs/catalina.out
以上是关于linux查看log的主要内容,如果未能解决你的问题,请参考以下文章