/var/log/log-path/*.log {
daily
dateext
dateformat -%Y-%m-%d
missingok
rotate 10
compress
delaycompress
notifempty
create 0644 nginx nginx
sharedscripts
postrotate
[ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
endscript
}
歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) | Powered by Discuz! 6.0.0 |