---
title: "Nginx 关闭日志功能"
author: "heiyan"
date: "2011-05-15T20:40:00Z"
tags: []
slug: "nginx"
draft: false
lastmod: "2011-10-02T18:55:03Z"
id: 1184724
url: "https://heiyan.iteye.com/blog/1184724"
---

对面访问量的网站来说，开着日志还真是负担啊。

error\_log off

这个是不行的，日志会写到名字叫off的文件中的

error\_log /dev/null crit;

这样就能关闭了

最怕日志把分区写满了