限制apache日志大小的方法
来源:互联网 发布:夺命call软件 编辑:程序博客网 时间:2024/06/10 00:09
限制apache日志大小的方法
<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 680460288 22 0 262145 0;}@font-face{font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;mso-font-charset:1;mso-generic-font-family:roman;mso-font-format:other;mso-font-pitch:variable;mso-font-signature:0 0 0 0 0 0;}@font-face{font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;mso-font-charset:0;mso-generic-font-family:swiss;mso-font-pitch:variable;mso-font-signature:-1593833729 1073750107 16 0 415 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 680460288 22 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-unhide:no;mso-style-qformat:yes;mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:widow-orphan;font-size:10.5pt;font-family:"Times New Roman","serif";mso-fareast-font-family:宋体;}.MsoChpDefault{mso-style-type:export-only;mso-default-props:yes;font-size:10.0pt;mso-ansi-font-size:10.0pt;mso-bidi-font-size:10.0pt;mso-ascii-font-family:"Times New Roman";mso-fareast-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";mso-font-kerning:0pt;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
本方法采用apache加载模块的方式.
1.上传附件到服务器上
2.在文件所在的文件夹执行命令:apxs -i -a -c mod_log_rotate.c
3.Vi httpd.conf
确认以下一行存在,没有则添加上去
LoadModule log_rotate_module /usr/lib/httpd/modules/mod_log_rotate.so
4.添加以下四行内容
RotateLogs On
RotateInterval 3600
RotateLogsLocalTime On
CustomLog /logs/access_log.%H combined
5.重启apache服务
Server httpd resrart
- 限制apache日志大小的方法
- 限制Apache日志文件大小的方法
- 限制 Apache日志文件大小的方法
- 【转自】限制Apache日志文件大小的方法
- 限制Apache日志文件大小和每天生成日志文件的方法
- 清除error.log、access.log并限制Apache日志文件大小的方法
- 清除error.log、access.log并限制Apache日志文件大小的方法
- 清除error.log、access.log并限制Apache日志文件大小的方法
- 清除error.log、access.log并限制Apache日志文件大小的方法
- apache 访问日志如何设置每日新增一个日志文件、如何限制大小、设置记录内容
- 限制文件夹大小的一种方法
- 限制Map大小的实现方法
- mysql的binlog日志限制大小和期限设置
- 缩小sql server数据库日志文件,限制sql server数据库日志文件的大小
- 限制上传大小的
- JAVASCRIPT弹出窗口限制大小的几种方法
- 对话框添加“WM_GETMINMAXINFO”的方法,来限制对话框大小
- linux下限制一个文件夹大小的方法
- MFC中键盘响应的两个问题
- 千万数量级分页存储过程
- 2.4GHz 无线技术标准及ZigBee 抗干扰性能
- J2me 相关英文缩写
- Java成员的默认访问控制
- 限制apache日志大小的方法
- 在PROTEL DXP里面画四层PCB图
- 网站镜像服务器数据同步方法
- 开通
- oracle 常用函数
- 设计模式笔记(16)---解释器模式(行为型)
- Assert - 断言
- 使用集合
- 快乐也需要有人分享