Acfe 发表于 2019-1-30 08:26:14

ubuntu12TSL安装awstats日志分析软件

  awstats日志分析软件,相信大家都有所了解,不清清楚的百度、谷歌
安装步骤如下:
1.sudo apt-get install awststs   #安装awstats软件


LogFile="/var/log/apache/access.log"
LogFormat=1
DNSLookup=1
DirData="/var/cache/awstats/"
DirCgi="/cgi-bin"
DirIcons="/icon"
SiteDomain="hostname"
AllowToUpdateStatsFromBrowser=1
AllowFullYearView=3

  sudo chmod   777   /var/cache
  2.sudo cp -r /usr/share/awstats/icon /var/www/icon
3./usr/lib/cgi-bin/awstats.pl -config=ubuntu -update   #更新数据
或者crontab -e
*/1 * * * /usr/lib/cgi-bin/awstats.pl -config=ubuntu -update#具体时间根据实际情况灵活调整
http://blog.运维网.com/attachment/201206/101712426.png
4.查看
  http://192.168.1.101/cgi-bin/awstats.pl?config=ubuntu

http://blog.运维网.com/attachment/201206/101757230.png
  




页: [1]
查看完整版本: ubuntu12TSL安装awstats日志分析软件