标签:
1 vim /etc/logrotate.d/nginx-server 2 [root@GNOP017-CN-DUAL-GDST-133-119 logrotate.d]# cat nginx-server 3 /var/log/nginx/access.log /var/log/nginx/error.log { 4 daily 5 missingok 6 rotate 7 7 minsize 50M 8 compress 9 delaycompress 10 notifempty 11 sharedscripts 12 postrotate 13 /etc/init.d/nginx reload > /dev/null 14 endscript 15 }
标签:
原文地址:http://www.cnblogs.com/Roach57/p/0a2f51b05da2bbc7c29b2a7ec67d4ad5.html