nginx日志切割(logrotate或shell脚本)

nginx本身不会对日志文件进行切割,能够经过两种不一样的方式进行,分别是:经过logrotate和经过shell脚本。node 若是是yum方式安装的nginx,系统默认会自动经过logrotate这个日志管理软件,按天进行分割(配置以下,具体含义可看下文)。linux [root@flume-2 ~]# cat /etc/logrotate.d/nginx /var/log/nginx/*l
相关文章
相关标签/搜索