AwStats的GEO-IP插件
[
2008/07/31 16:26 | by askwan ]
2008/07/31 16:26 | by askwan ]
awstats的安装配置 可以参考前面的文章
什么是GEO-IP
配置Geo-IP:
什么是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:
基于虚拟主机的awstats配置要点
[
2008/07/31 14:55 | by askwan ]
2008/07/31 14:55 | by askwan ]
日志分析工具AwStats
[
2008/07/31 12:47 | by askwan ]
2008/07/31 12:47 | by askwan ]
编译完apache后将其加为系统服务
[
2008/07/31 10:59 | by askwan ]
2008/07/31 10:59 | by askwan ]
自己手动编译apache后,实际上也可以做到和rpm包安装的那样,用系统服务命令service httpd restart来启动,
只是需要手动设置一下。
假设apache编译安装目录为/usr/local/apache2
编译安装完后启动和关闭apache的指令是 /usr/local/apache2/bin/apachectl start | stop | restart
现在将其加入系统服务
复制启动脚本到/etc/rc.d/init.d/
然后在相应的启动级别如3,4,5中加入链接
链接文件S85是启动序号。
然后在启动脚本/etc/rc.d/init.d/httpd文件第二行加入
第二行为启动软件描述apache!
然后加入系统服务列表
如果出现“service httpd does not support chkconfig”,我猜你一定是忘记了把”chkconfig: 345 85 85“和"description: Apache"前面的"#"给漏掉了。
开机自动启动
只是需要手动设置一下。
假设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
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
[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。#description: Apache
第二行为启动软件描述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






