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
}
时间: 2024-10-20 13:33:01