码迷,mamicode.com
首页 > 系统相关 > 详细

linux查看log

时间:2016-10-17 13:57:58      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:

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

标签:

原文地址:http://www.cnblogs.com/yy123/p/5969228.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!