配置nginx日志按天生成
http{ map $time_iso8601 $logdate { '~^(?d{4}-d{2}-d{2})' $ymd; default 'nodate'; } server{ accesslog '/var/log/nginx/access${logdate}.log' } }
Nginx内置变量以及日志格式变量参数详解
https://www.cnblogs.com/wajika/p/6426270.html
access_log 配置及信息详解
https://www.cnblogs.com/czlun/articles/7010591.html
重启方法
https://blog.csdn.net/zqinghai/article/details/71125045