故障现象 系统日志时间晚了整整8个小时,比如现在是中午12点,日志时间为凌晨4点 date命令报错(Local time zone must be set--see zic manual page) 解决方案(失败) 修改/etc/profile export TZ='Asia/Shanghai' 无效,date命令显示正常,但是放在脚本中的date命令依然报错,并且日志时间依然延后8小时 tzselect配置 #tzselect Please identify a location so th
官方文档: http://nginx.org/en/docs/http/ngx_http_log_module.html The ngx_http_log_module module writes request logs in the specified format. Requests are logged in the context of a location where processing ends. It may be different from the original loc