PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 服务器 > Web服务器 > 正文

    如何限制Apache日志access.log、error.log文件大小??

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:如何限制Apache日志access.log、error.log文件大小??
    在 Windows 下的设置例子如下:
    # 限制错误日志文件为 1M
    ErrorLog "|bin/rotatelogs.exe -l logs/error-%Y-%m-%d.log 1M"
    # 每天生成一个错误日志文件
    #ErrorLog "|bin/rotatelogs.exe  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  logs/access-%Y-%m-%d.log 86400" common 
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-122-5630-1.html
    相关热词搜索: