删除冗余的日志文件

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

原文地址:https://www.cnblogs.com/littlehb/p/7279677.html