nginx日志模块及日志定时切割的方法

airflynet 15 0 PDF 2021-01-16 17:01:40

一:作用 Ngx_http_log_module:定义日志格式,并且以指定的格式保存。 二:示例配置 log_format compression '$remote_addr - $remote_user [$time_local] ' '$request $status $bytes_sent ' '$http_referer $http_user_agent $gzip_ratio'; access_log /spool/logs/nginx-access.log compression buffer=32k; 三:acc

用户评论
请输入评论内容
评分:
暂无评论