安裝cronolog格式化Apache的日志文件
添加時(shí)間:2010-12-10
添加:
admin
使用cronolog可以格式化日志文件的格式,比如按時(shí)間分割,易于管理和分析。
cronolog的安裝配置非常簡(jiǎn)單,簡(jiǎn)要說(shuō)明如下:
1.下載軟件
http://cronolog.org/download/index.html
2.解壓縮
gzip -d cronolog-1.6.2.tar.gz
tar xf cronolog-1.6.2.tar
2.進(jìn)入相應(yīng)的目錄./configure
3.make
4.make install
5.修改apache配置文件
以下是我的安裝日志,供大家參考:
考:
[root@eygle opt]# wget http://cronolog.org/download/cronolog-1.6.2.tar.gz --08:05:12-- http://cronolog.org/download/cronolog-1.6.2.tar.gz => `cronolog-1.6.2.tar.gz' Resolving cronolog.org... done. Connecting to cronolog.org[217.160.212.212]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 133,591 [application/x-gzip]
100%[==================================>] 133,591 26.23K/s ETA 00:00
08:05:19 (26.23 KB/s) - `cronolog-1.6.2.tar.gz' saved [133591/133591] [root@eygle opt]# gzip -d cronolog-1.6.2.tar.gz [root@eygle opt]# tar xf cronolog-1.6.2.tar [root@eygle opt]# cd cronolog-1.6.2 [root@eygle cronolog-1.6.2]# ls aclocal.m4 config.cache configure cronolog.spec install-sh Makefile.am mkinstalldirs src AUTHORS config.log configure.in doc lib Makefile.in NEWS testsuite ChangeLog config.status COPYING INSTALL Makefile missing README TODO [root@eygle cronolog-1.6.2]# ./configure loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... (cached) yes checking for ranlib... (cached) ranlib checking for perl... (cached) /usr/bin/perl checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking whether stat file-mode macros are broken... (cached) no checking whether time.h and sys/time.h may both be included... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for tm_zone in struct tm... (cached) yes checking for fcntl.h... (cached) yes checking for limits.h... (cached) yes checking for unistd.h... (cached) yes checking for working const... (cached) yes checking for size_t... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for strftime... (cached) yes checking for vprintf... (cached) yes checking for mkdir... (cached) yes checking for mktime... (cached) yes checking for putenv... (cached) yes c
版權(quán)所有:佛山思海電腦網(wǎng)絡(luò)有限公司 ©1998-2024 All Rights Reserved.
聯(lián)系電話:(0757)22630313、22633833
中華人民共和國(guó)增值電信業(yè)務(wù)經(jīng)營(yíng)許可證: 粵B1.B2-20030321 備案號(hào): 粵B2-20030321-1
網(wǎng)站公安備案編號(hào):44060602000007
交互式欄目專(zhuān)項(xiàng)備案編號(hào):200303DD003
|