定时清理 nginx日志
vim /etc/crontab
59 23 * * * root /usr/sbin/logrotate -f /etc/logrotate.d/nginx_access.log >/tmp/logro.log 2>&
59 23 * * * root /usr/sbin/logrotate -f /etc/logrotate.d/nginx_error.log >/tmp/logro.log 2>&
原文:https://www.cnblogs.com/hxfcodelife/p/14210984.html