当前位置:编程学习 > 网站相关 >>

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
就可以查看到有地图出现了!

补充:综合编程 , 其他综合 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,