linux下ngix日志自动翻滚
/
etc/
logrotate.d/
nginx
/var/log/nginx/*.log {
daily
missingok
compress
rotate 30
dateext
notifempty
sharedscripts
extension gz
postrotate
[! -f /var/log/nginx/nginx.pid ] || kill -USR1 `cat /var/log/nginx/nginx.pid`
endscript
}
/
etc/
init.d/
syslog
restart
关键词标签:linux,ngix日志