nginx.conf error_log 设置错误日志

 时间:2026-04-29 13:14:04

1、配置:

error_log logs/error.log 错误级别

可以放在在http server location等不同的模块中

说明:

error_log:设置错误日志指令

级别:默认error

nginx.conf error_log 设置错误日志

2、级别:

debug:

info:

notice:通知

warn:警告

error:错误

crit:

日志详细程度依次递减。debug记录的日志最详细,crit记录的最简洁。

nginx.conf error_log 设置错误日志

3、关闭错误日志:

error_log /dev/null;

nginx.conf error_log 设置错误日志

  • 易语言如何检测网络状态并显示在标签上
  • notepad++怎么在代码显示空格字符
  • H3C无线板与IMC的UAM配合实现portal认证的配置
  • 设置Serv-u的虚拟路径
  • 如何关闭cmd窗口?七个实用小技巧
  • 热门搜索
    三八发什么 光景的意思 大产权房是什么意思 jpg格式是什么意思 aps是什么意思 calendar是什么意思 炫耀的意思 什么是立冬 cpu是什么意思 唐筛什么时候做最好