首页 > 代码库 > linux查看log
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