NGINX_六 nginx 日志文件详解

六 nginx 日志文件详解

复制代码
nginx 日志文件分为 **log_format** 和 **access_log** 两部分

log_format 定义记录的格式,其语法格式为

log_format        样式名称        样式详情

配置文件中默认有
shell 复制代码
log_format  main  '$remote_addr - $remote_user [time_local] "request" '
                  '$status body_bytes_sent "$http_referer" '
                  '"http_user_agent" "http_x_forwarded_for"';


相关推荐
Yana.nice33 分钟前
Linux 只保留 30 天内日志(find命令删除日志文件)
linux·运维·chrome
吳所畏惧4 小时前
宝塔面板Redis密码修改指南:SSH命令修改 vs 面板UI界面修改,哪个更靠谱?
运维·服务器·数据库·redis·缓存·ssh
DFT计算杂谈4 小时前
无 Root 权限在 Tesla K80 零门槛部署 DeepSeek 大模型
linux·服务器·网络·数据库·机器学习
维天说5 小时前
CLI-Switch 2026年3月版历史设计:Hook、TTY 隔离与 JSON 状态
java·服务器·json
Zhang~Ling5 小时前
从 fopen 到 struct file:从零开始拆解 Linux 文件 I/O
linux·运维·服务器
DeeplyMind5 小时前
Linux 深入 per-VMA lock:Linux 缺页路径如何摆脱 mmap_lock
linux·per-vma lock
爱写代码的阿森5 小时前
鸿蒙三方库 | harmony-utils之PreferencesUtil首选项数据监听详解
服务器·华为·harmonyos·鸿蒙·huawei
爱写代码的森5 小时前
蒙三方库 | harmony-utils之FileUtil文件重命名与属性查询详解
linux·运维·服务器·华为·harmonyos·鸿蒙·huawei
郝亚军6 小时前
使用Vue 3和Nginx打包和部署Vue.js项目的一般步骤
前端·vue.js·nginx