当前位置:论坛首页 > BUG提交 > Linux面板

求php geoip扩展

发表在 BUG提交2017-5-18 22:10 [复制链接] 2 4314

求php geoip扩展
使用道具 举报 只看该作者 回复
发表于 2017-5-18 22:16:51 | 显示全部楼层
PHP的扩展插件该增加了!!!  手动安装死活安不上。 求帮助!! 求面板支持
使用道具 举报 回复 支持 反对
发表于 2017-5-18 22:28:08 | 显示全部楼层
  1. 安装GEOIP[root@i -it ~]# yum install GeoIP GeoIP-deve
  2. ##下载GeoIP的数据库,有精确到国家和地区包括IPv6 自行选择...###
  3. [root@i -it ~]# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
  4. ##解压下载的库.###
  5. [root@i -it ~]# gzip -d GeoLiteCity.dat.gz
  6. ##移动到目录.###
  7. [root@i -it ~]# mv GeoLiteCity.dat /www/server/geoip/GeoIPCity.dat

  8. ##下载GeoIP PECL扩展##
  9. [root@i -it ~]# wget -c http://pecl.php.net/get/geoip-1.1.1.tgz
  10. [root@i -it ~]# tar -zxvf geoip-1.1.1.tgz
  11. [root@i -it ~]# cd /www/server/geoip
  12. [root@i -it ~]# /www/server/php/55/bin/phpize
  13. [root@i -it ~]# ./configure --with-php-config=/www/server/php/55/bin/php-config --with-geoip

  14. ##操作到此##

  15. [root@i -it ~]# make
  16. ##make: *** No targets specified and no makefile found.  Stop.##
  17. ## 这里make提示错误。进行到此处。看如何解决##
  18. [root@i -it ~]# make install
  19.   
  20. 在 php.ini 里加上
  21. extension=geoip.so
  22. 接着重启一下 php 就行了
  23. 现在,你可以使用 php 手册里的 GeoIP 部份函数了
  24. http://cn.php.net/manual/en/book.geoip.php
复制代码


上面是我的操作步骤
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表