apache 配置成滚动日志的方法
更新时间:2010年12月17日 10:41:59 作者:
apache默认的日志只是1个文件,随着访问量的加大,该日志文件会越来越大,借助apache的rotatelogs.exe自动生成滚动日志。
下面配置配置成每24小时产生1个新的日志文件:
#先搭建1个很简单网站进行访问
DocumentRoot E:/ApacheTestWeb
<Directory E:/ApacheTestWeb>
AllowOverride None
Allow from all
</Directory>
#修改如下配置:
CustomLog "|D:/Apache2.2/bin/rotatelogs.exe D:/Apache2.2/logs/access.log 86400" common
#先搭建1个很简单网站进行访问
DocumentRoot E:/ApacheTestWeb
<Directory E:/ApacheTestWeb>
AllowOverride None
Allow from all
</Directory>
#修改如下配置:
CustomLog "|D:/Apache2.2/bin/rotatelogs.exe D:/Apache2.2/logs/access.log 86400" common
相关文章
environments was not found on the java.library.path 问题的解决方法
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 问题的解决方法,需要的朋友可以参考下2016-08-08
最新评论