麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 網(wǎng)站 > Apache > 正文

限制 Apache日志文件大小的方法

2024-08-27 18:30:05
字體:
供稿:網(wǎng)友
通常我們是在{$apache}/conf/httpd.conf中設(shè)置Apache的參數(shù),然而我們并沒有發(fā)現(xiàn)可以設(shè)置日志文件大小的配置指令,通過參考,可以用apache 自己的程序 rotatelogs.exe(位于 {$apache}/bin/目錄下),來限制日志文件的大小。
Usage: rotatelogs [-l] [offset minutes from UTC] or
Add this:
TransferLog "|rotatelogs /some/where 86400"
or
TransferLog "|rotatelogs /some/where 5M"
to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the system time at which the log nominally starts (N.B. if using a rotation time, the time will always be a multiple of the rotation time, so you can synchronizecron scripts with it). At the end of each rotation time or when the file size is reached a new log is started.
在 Windows 下的設(shè)置例子如下:
# 限制錯誤日志文件為 1M
ErrorLog "|bin/rotatelogs.exe -l logs/error-%Y-%m-%d.log 1M"
# 每天生成一個錯誤日志文件
#ErrorLog "|bin/rotatelogs.exe -l logs/error-%Y-%m-%d.log 86400"
# 限制訪問日志文件為 1M
CustomLog "|bin/rotatelogs.exe -l logs/access-%Y-%m-%d.log 1M" common
# 每天生成一個訪問日志文件
#CustomLog "|bin/rotatelogs.exe -l logs/access-%Y-%m-%d.log 86400" common
linux/Unix下 應(yīng)該類似。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 国产精品成年片在线观看, 激情小说另类 | 久久精品亚洲成在人线av网址 | 色淫湿视频| 欧美三级欧美成人高清www | 国产精品一区在线看 | 国产日韩大片 | 久久精品欧美一区二区 | 欧美成人性生活 | 成人免费自拍视频 | 超碰99在线观看 | 欧美视频在线一区二区三区 | 日本综合久久 | 狠狠一区 | 国产成人综合在线视频 | 五月婷婷第四色 | 免费放黄网站在线播放 | 国产大片全部免费看 | 久久久噜噜噜久久熟有声小说 | 欧美伦理一区二区 | 免费a视频在线观看 | 成人免费福利 | 911网站大全在线观看 | 国产羞羞网站 | 精品亚洲视频在线 | 亚洲第一页中文字幕 | 蜜桃网在线观看 | 双性帝王调教跪撅打屁股 | 久久久中精品2020中文 | 国产午夜电影 | 国产在线看一区 | 国产欧美在线观看不卡一 | 精品成人免费视频 | 午夜爱爱福利 | 成人一级视频 | 成人一级免费视频 | 成人短视频在线观看免费 | 亚洲精品一区中文字幕 | 久久国产精品电影 | 亚洲第一色片 | 91av网址| 欧美精品一级片 |