摘要:
1、建立/etc/logrotate.d/nginx文件[1]vim /etc/logrotate.d/nginx2、写入如下内容:/var/log/nginx/*log {dailyrotate 10missingoknotifemptycompresssharedscriptspostrotat... 阅读全文
posted @ 2014-04-28 15:50
长城的草
阅读(2715)
评论(0)
推荐(0)
摘要:
删除创建时间大于30天的文件find /archivelog -ctime +30 | xargs rm -rf-amin n #查找系统中最后N分钟访问的文件 -atime n #查找系统中最后n*24小时访问的文件 -cmin n #查找系统中最后N分钟被改变状态的文件 -ctime n #查找... 阅读全文
posted @ 2014-04-28 15:32
长城的草
阅读(818)
评论(0)
推荐(0)

浙公网安备 33010602011771号