删除冗余的日志文件

1、 删除日志

 cd /
 find -name 'dianxinLog.log'  -exec rm -f {} \;
 find -name 'tangshanLog.log'  -exec rm -f {} \;
 find -name 'weidong.log'  -exec rm -f {} \;
 find -name 'debugLog.log'  -exec rm -f {} \;
 find -name 'uploadQuestion.log'  -exec rm -f {} \;
 find -name 'dsideal.log' -exec rm -f {} \;

2、log4j.appender.weidong.File 规定使用全程路径,不得使用相对路径  ./视为非法。

用例 :

log4j.appender.weidong.File=/usr/local/tomcat7/logs/weidong/weidong.log

 

3、重启tomcat

 

posted @ 2017-08-03 14:47  糖豆爸爸  阅读(212)  评论(0)    收藏  举报
Live2D