安装Geo-IP

      安装指令例如以下所看到的,跟着步骤一步一步运行就可以。使用root权限,假设不是的话,请依据情况加上sudo权限命令。

cd /tmp
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
tar -zxvf GeoIP.tar.gz
cd GeoIP-1.4.8
./configure
make
make install
##-------Index the library into the system with ldconfig----
echo '/usr/local/lib' > /etc/ld.so.conf.d/geoip.conf
ldconfig


posted on 2017-05-07 08:15  slgkaifa  阅读(193)  评论(0编辑  收藏  举报

导航