日期:2014-05-16 浏览次数:20954 次
vi / etc/ logrotate.d/ nginx /var/log/nginx/*.log { daily missingok compress rotate 30 dateext notifempty sharedscripts extension gz postrotate [! -f /var/log/nginx/nginx.pid ] || kill -USR1 `cat /var/log/nginx/nginx.pid` endscript } ? / etc/ init.d/ syslog restart