找回密码
 新猫注册
查看: 440|回复: 0

Apache 关闭 access_log 并优化 error_log

[复制链接]
kernel 发表于 2008-9-23 12:43:51 | 显示全部楼层 |阅读模式
在 Apache 配置文件里面注释掉下面几行:
#<IfModule log_config_module>
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
# LogFormat "%h %l %u %t \"%r\" %>s %b" common
# <IfModule logio_module>
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
# </IfModule>
# CustomLog logs/access_log common
#</IfModule>
另外顺便把 error_log 也优化了:
LogLevel warn
改成:
LogLevel error

然后重启 Apache WEB 服务器就可以了。
您需要登录后才可以回帖 登录 | 新猫注册

本版积分规则

手机版|小黑屋|[漫猫]动漫论坛

GMT+8, 2024-4-27 21:12

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表