linux下日志轮循配置
时间:2009-03-23 来源:sjhf
##################################################################### # 日志轮循主配置文件【logrotate.conf】 # 作者:胡昌文 # 日期:2008-06-11 #################################################################### # see "man logrotate" for details # rotate log files weekly weekly #轮循的周期【每天,每星期,每月,每年】 # keep 4 weeks worth of backlogs rotate 4 #日志保留的分数 # create new (empty) log files after rotating old ones create #新日志文件的生成方式 # uncomment this if you want your log files compressed #compress #是否压缩日志文件 # RPM packages drop log rotation information into this directory include /etc/logrotate.d #引入特定日志文件的轮循方法 # no packages own wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } #某个特定日志文件的轮循方式 # system-specific logs may be also be configured here. |
相关阅读 更多 +