ylsunyuan技术论坛中心

 找回密码
 注册(请使用中文注册)
搜索
热搜: 活动 交友 discuz
查看: 926|回复: 0
打印 上一主题 下一主题

限制Apache日志access.log以及error.log文件大小

[复制链接]

124

主题

127

帖子

619

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
619
跳转到指定楼层
楼主
发表于 2015-6-3 16:05:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1.   #http.conf  每天生成一个文件
  2.    

  3.     #CustomLog "D:/wamp/logs/%Y_%m_%d.access.log" common   原配置
  4.     CustomLog "|D:/wamp/bin/apache/Apache2.2.21/bin/rotatelogs.exe D:/wamp/logs/%Y_%m_%d.access.log 86400 480" common

  5.     #
复制代码


回复

使用道具 举报

本版积分规则

QQ|Archiver|手机版|小黑屋|ylsunyuan技术论坛 ( 桂ICP备14005218号-1

GMT+8, 2024-4-19 20:46 , Processed in 0.059800 second(s), 31 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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