我自己在 Ubuntu 上编译了 nginx。我用 -c nginx.conf 参数启动我的 nginx。在我的 nginx.conf 文件中,我尝试关闭错误日志但失败了。
error_log /dev/null crit;
仍然得到错误信息: nginx: [alert] could not open error log file: open() "/usr/nginx/logs/error.log" failed (2: No such file or directory)
如何关闭此日志或更改其位置?