禁用 apache 日志记录到 access.log [英] disabling apache logging to access.log

查看:46
本文介绍了禁用 apache 日志记录到 access.log的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读关于禁用 apache 服务器的日志记录,这对我来说至关重要,因为我正在对其进行大量测试,并且它会填满磁盘.

I've been reading about disabling the logging of the apache server, which is crucial for me as I'm running huge tests on it, and it fills the disk.

我尝试更改 http.conf 并将内容定向到/dev/null,但没有任何效果,因为大部分是错误日志记录.

I've tried changing http.conf and directing stuff to /dev/null, but none of it worked, as most of it was the Error logging.

有人知道吗?

谢谢

推荐答案

只需注释设置日志记录的区域.

Just comment the areas where logging was set.

开启,

httpd.conf
virtual hosts configurations (virtual.conf, domain.conf etc)

对于类似的东西

CustomLog logs/access_log common
ErrorLog logs/error_log

就去做,

#CustomLog logs/access_log common
#ErrorLog logs/error_log

这篇关于禁用 apache 日志记录到 access.log的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆