Apache cronolog 分割日志

 Apache cronolog  日志分割

 
wget  http://cronolog.org/download/cronolog-1.6.2.tar.gz
 
tar zxvf cronolog-1.6.2.tar.gz   -C /usr/src
 
cd /usr/src/cronolog-1.6.2
 
./configure --prefix=/usr/local/cronolog
 
make && make install
 
ErrorLog "|/usr/local/cronolog/sbin/cronolog /var/log/httpd/zchx/www.bjzcweb.net-error_log_%F.log"
CustomLog "|/usr/local/cronolog/sbin/cronolog /var/log/httpd/zchx/www.bjzcweb.net-%F.log" combined

你可能感兴趣的:(apache日志分割)