Pages: 9/21 First page Previous page 4 5 6 7 8 9 10 11 12 13 Next page Final page [ View by Articles | List ]

AwStats的GEO-IP插件

[不指定 2008/07/31 16:26 | by askwan ]
awstats的安装配置 可以参考前面的文章
什么是GEO-IP
GeoIP® is the proprietary technology that drives MaxMind's IP geolocation data and services. GeoIP provides businesses with a non-invasive way to determine geographical and other information about their Internet visitors in real-time. When a person visits your website, GeoIP can determine which country, region, city, postal code, area code the visitor is coming from. Furthermore, GeoIP can provide information such as longitude/latitude, connection speed, ISP, company name, domain name, and whether the IP address is an anonymous proxy or satellite provider.


配置Geo-IP:
Tags: , ,
假设apache服务器配置了基于域名的虚拟主机www.askwan1.comwww.askwan2.com
假设配置完后:
Tags: , ,

日志分析工具AwStats

[不指定 2008/07/31 12:47 | by askwan ]
awstats Open in new window
是一有效分析日志的利器。软件和文档都可以官方网站找到:http://awstats.sourceforge.net

这里简单记下自己利用awstats分析apache日志的配置过程。
Tags: ,
自己手动编译apache后,实际上也可以做到和rpm包安装的那样,用系统服务命令service httpd restart来启动,
只是需要手动设置一下。

假设apache编译安装目录为/usr/local/apache2
编译安装完后启动和关闭apache的指令是 /usr/local/apache2/bin/apachectl  start | stop | restart

现在将其加入系统服务
复制启动脚本到/etc/rc.d/init.d/
Quotation
[root@localhost ]#cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
然后在相应的启动级别如3,4,5中加入链接
Quotation
[root@localhost ]#cd /etc/rc3.d
[root@localhost ]#ln -s /etc/rc.d/init.d/httpd S85httpd
[root@localhost ]#ln -s /etc/rc.d/init.d/httpd K85httpd


链接文件S85是启动序号。

然后在启动脚本/etc/rc.d/init.d/httpd文件第二行加入

#chkconfig: 345 85 85
#description: Apache
第一行参数意义表示在启动级别3,4,5启动(启动级别4无意义);启动序号为S85,关闭序号K85。
第二行为启动软件描述apache!

然后加入系统服务列表
Quotation
[root@localhost ]#chkconfig --add httpd


如果出现“service httpd does not support chkconfig”,我猜你一定是忘记了把”chkconfig: 345 85 85“和"description: Apache"前面的"#"给漏掉了。

开机自动启动
Quotation
[root@localhost ]#chkconfig --level  345 httpd on


Pages: 9/21 First page Previous page 4 5 6 7 8 9 10 11 12 13 Next page Final page [ View by Articles | List ]