首页 > 其他 > 详细

GeoIP最快捷安装

时间:2016-05-26 06:25:43      阅读:240      评论:0      收藏:0      [点我收藏+]


下载GeoIP数据包


mkdir /GeoIP
cd /GeoIP

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
wget http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz

gunzip GeoIP.dat.gz
gunzip GeoIPASNum.dat.gz

gunzip GeoLiteCity.dat.gz


// GeoIP 是国家数据,GeoLiteCity 是城市数据,GeoIPASNum 是组织数据



安装程序

rpm -ivh   http://ftp.linux.ncsu.edu/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

vim /etc/yum.repos.d/epel.repo      ## 注释mirrorlist url(包含https) ,然后取消注释baseurl

yum -y install GeoIP GeoIP-devel perl-Geo-IP

Verifying  : GeoIP-devel-1.6.5-1.el6.x86_64                                  1/5
Verifying  : geoipupdate-2.2.1-2.el6.x86_64                                  2/5
Verifying  : GeoIP-GeoLite-data-2015.12-1.el6.noarch                         3/5
Verifying  : GeoIP-1.6.5-1.el6.x86_64                                        4/5
Verifying  : GeoIP-GeoLite-data-extra-2015.12-1.el6.noarch                   5/5


本文出自 “何全” 博客,请务必保留此出处http://hequan.blog.51cto.com/5701886/1783283

GeoIP最快捷安装

原文:http://hequan.blog.51cto.com/5701886/1783283

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!