标签:awstats
#!/bin/sh
if [ ! -d /home/passport_log_tmp ] && [ ! -d /usr/local/nginx/html/awstats/passport.xxx.com ];then
mkdir -p /usr/local/nginx/html/awstats/passport.xxx.com
mkdir -p /home/passport_log_tmp
fi
rm -rf /home/passport_log_tmp/access_*.log
find /home/passport_log/web[1-2]/ -iname access_`date -d "yesterday" +%y%m%d`.log \
-exec cat {} >> /home/passport_log_tmp/access_`date -d "yesterday" +%Y%m%d`.log \;
/usr/local/awstats/tools/awstats_buildstaticpages.pl -update \
-config=passport.coocaa.com \
-lang=cn \
-dir=/usr/local/nginx/html/awstats/passport.coocaa.com \
-awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl
本文出自 “我的运维博客” 博客,请务必保留此出处http://linuxpython.blog.51cto.com/10015972/1643874
标签:awstats
原文地址:http://linuxpython.blog.51cto.com/10015972/1643874