笔记 by 车东

AWStats:QQ纯真库IP解析插件安装

· 日志分析|AWStats
[![](http://farm2.static.flickr.com/1337/578959127_71326c3580_m.jpg)](http://www.flickr.com/photos/chedong/578959127/) [AWStats:QQ纯真库IP解析插件和GeoIP City的对照](http://www.flickr.com/photos/chedong/578959127/)

原由 车东 上載

Albert提供了[纯真IP库解析包](http://www.ieasy.org/reload/cat2/awstats_qqhosti.html):比GeoIP City要精确的多。参考了[Nicky的安装文档](http://www.osxcn.com/journal/awstats-plugins.html),备忘如下:

插件代码:下载并复制到 awstats/plugins/目录下(为什么不合成一个文件并改好路径呢?)。 http://www.ieasy.org/download/qqhostinfo.pm http://www.ieasy.org/download/qqwry.pl

QQ纯真库IP库:下载解包,将QQwry.Dat文件复制到awstats/ 下; cz88.net/fox/ 官方网站打不开,也可以从华军/天空等下载站找到;

修改,qqwry.pl中:

./QQWry.Dat 修改为 ${DIR}/QQWry.Dat
在公共配置文件中:增加
LoadPlugin="qqhostinfo"

输出样例截图: http://www.flickr.com/photos/chedong/578959127/

按照以上模式安装后,以后定期更新纯真库即可。

参考文档: 纯真IP数据库格式详解

💬 历史评论

以下 2 条评论从旧版 Movable Type 博客迁移而来。 原始评论时间:2002–2016 年。

凉面 · 2007-07-06 13:25

请教问题,我使用IIS,按照你的文章内容操作,并不能得到地理位置。 其他的帖子提到需要安装Net::XWhois模块,Windows如何安装呢?请指教


Scott Wong · 2008-05-27 16:11

您好,看到您的文章,觉得非常好,但是我在使用中遇到一些困难,特地来请教 我的环境是: ActivePerl-5.8.8.822-MSWin32-x86-280952.msi,awstats-6.7.exe 操作系统Windows server 2003 standard SP2 ,IIS版本6.0

请问要怎样使用纯真IP数据库? QQwry.dat、 qqhostinfo.pm qqwry.pl这三个文件该怎样处理? LoadPlugin=“”这里该怎样填写?

我在.conf文件中和.pm文件中都使用的绝对路径

看了很多文章,在我的机器上试验之后只能看到浏览器中, Error: AWStats config file contains a directive to load plugin “program” (LoadPlugin=“c:\program files\awstats\wwwroot\cgi-bin\plugins\qqhostinfo.pm” but AWStats can’t open plugin file “c:\program.pm” for read. Check if file is in “C:\Program Files\AWStats\wwwroot\cgi-bin/plugins” directory and is readable.(这里我检查过,确实存在、可写)

Setup (‘C:\Program Files\AWStats\wwwroot\cgi-bin/awstats.www.arksoft.cn.conf’ file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in ‘docs’ directory).

请问有解决方法么?