linux nginx 日志按天存储实现

1、经过linux自带的logrotate实现 进入/etc/logrotate.d/,建立nginx linux vi /etc/logrotate.d/nginx 编写的脚本以下:nginx /usr/local/nginx/logs/*.log{ daily rotate 15 minsize 10M sharedscripts p
相关文章
相关标签/搜索