# 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
最新推荐文章于 2024-02-05 15:09:33 发布