http://cronolog.org/download/index.html 下载软件地址
mkdir -p /usr/local/cronolog
./configure --prefix=/usr/local/cronolog/
make && make instll
修改apache配置文件
#CustomLog logs/access_log common 将此行配置文件禁用
#CustomLog logs/access_log combined 将此行配置文件禁用
#CustomLog logs/access_log common 在此行代码前添加
CustomLog "|/usr/local/sbin/cronolog /opt/logs/access_%Y%m%d.log" combined
建立日志存放目录
mkdir -p /opt/logs
转载于:https://blog.51cto.com/ccdxdb/1707078