# file /etc/logrotate.d/nginx
{
daily
rotate 1
size 10M
sharedscripts
postrotate
#/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
service nginx reload
endscript
}
logrotate
最新推荐文章于 2025-01-11 09:15:17 发布