Home >php教程 >php手册 >解决Apache日志文件ACCESS.LOG日益膨胀的一个办法:

解决Apache日志文件ACCESS.LOG日益膨胀的一个办法:

WBOY
WBOYOriginal
2016-06-21 09:11:46980browse

access|apache|解决

将httpd.conf中CustomLog logs/access.log common 改成

CustomLog "|c:/apache/bin/rotatelogs c:/apache/logs/%Y_%m_%d.access.log 86400 480" common

重启Apache

其中c:/apache/是你安装apache的路径
这样每一天生成一个日志文件 



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn