logrotate/etc/logrotate.conf/etc/logrotate.dchattr -a /var/log/messagechattr +a /var/log/message只能新增,不能删除或修改。lsattrchgrp groupname filenamechown ownername filenamechmod [-R] 777 filename/var/log/nginx/*log { daily rotate7 missingok notifempty compress sharedscripts postrotate [ ! -f /var/run/nginx.p Read More
posted @ 2012-08-19 16:09 hurner Views(212) Comments(0) Diggs(0) Edit