Think before you speak, read before you think.

nginx 关闭 error_log

by

in

error_log off并不能关闭日志记录功能,它将日志文件写入一个文件名为off的文件中,如果你想关闭错误日志记录功能,应使用以下配置:

error_log /dev/null crit;

把存储位置设置到Linux的黑洞中去


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *