apache 配置成滾動日志的方法
更新時間:2010年12月17日 10:41:59 作者:
apache默認(rèn)的日志只是1個文件,隨著訪問量的加大,該日志文件會越來越大,借助apache的rotatelogs.exe自動生成滾動日志。
下面配置配置成每24小時產(chǎn)生1個新的日志文件:
#先搭建1個很簡單網(wǎng)站進(jìn)行訪問
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個很簡單網(wǎng)站進(jìn)行訪問
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
相關(guān)文章
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-08centos 7中添加一個新用戶并授權(quán)的步驟詳解
這篇文章主要給大家介紹了關(guān)于在centos 7中添加一個新用戶并授權(quán)的步驟,文中將實(shí)現(xiàn)的步驟介紹的非常詳細(xì),通過文中介紹的步驟可以輕松的創(chuàng)建一個新用戶并授權(quán),需要的朋友可以參考借鑒,下面來一起看看吧。2017-08-08基于Centos7 部署Varnish緩存代理服務(wù)器
這篇文章主要介紹了基于Centos7 部署Varnish緩存代理服務(wù)器,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-01-01