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

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

WBOY
Release: 2016-06-21 09:11:46
Original
980 people have browsed it

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的路径
这样每一天生成一个日志文件 



Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template