标签:logrotate
cat /etc/logrotate.d/nginx
/opt/lamp/apache/logs/*.log {
su root root
daily
rotate 14
copytruncate
compress
notifempty
missingok
dateext
postrotate
/usr/bin/killall -USR1 /opt/openresty/nginx/sbin/nginx
endscript
}
本文出自 “silence” 博客,请务必保留此出处http://silencezone.blog.51cto.com/3613477/1926144
标签:logrotate
原文地址:http://silencezone.blog.51cto.com/3613477/1926144