biao199423 发表于 2015-11-27 14:23:15

awstats+google chart

  在awstats基础上加一个地图显示的功能,采用的是google chart,具体参考 https://developers.google.com/chart/?hl=zh-CN
  按照前面博客的awstats配置,从 http://bbs.linuxtone.org/thread-6475-1-1.html 下载得到相应的库
  把 搜索引擎和蜘蛛定义更新: robots.pm search_engines.pm 放到 /var/lib 下面
  # vim /etc/awstats/awstats.common.conf
  #添加一条
  LoadPlugin="graphgooglechartapi"

  保存退出
  

  更新文本数据库
  # /usr/local/awstats/tools/awstats_updateall.pl now

  生成静态文件
  # /usr/local/awstats/tools/awstats_buildstaticpages.pl -update-config=website-lang=cn -dir=/path_to_your_website/awstats/website
  http://your_website/awstats/website/awstats.website.html
  就可以查看到有地图出现了!
页: [1]
查看完整版本: awstats+google chart