QQWry 是一个php扩展,这个扩展的作用,就是根据ip来获取纯真数据库(QQWry.Dat)的地址信息。我们通常使用pecl来安装qqwry,我们安装pecl需要安装pear。pear是PHP扩展与应用库,它是一个PHP扩展与应用的一个仓库。

我们先来安装pear:

1.http://pear.php.net/go-pear.phar下载最新的go-pear。

#php go-pear.phar

PHP Warning:  Module 'apc' already loaded in Unknown on line 0

Below is a suggested file layout for your new PEAR installation.  To

change individual locations, type the number in front of the

directory.  Type 'all' to change all of them or simply press Enter to

accept these locations.

1. Installation base ($prefix)                   : /usr

2. Temporary directory for processing            : /tmp/pear/install

3. Temporary directory for downloads             : /tmp/pear/install

4. Binaries directory                            : /usr/bin

5. PHP code directory ($php_dir)                 : /usr/share/pear

6. Documentation directory                       : /usr/docs

7. Data directory                                : /usr/data

8. User-modifiable configuration files directory : /usr/cfg

9. Public Web Files directory                    : /usr/www

10. Tests directory                               : /usr/tests

11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue: all

Installation base ($prefix) [/usr] :

Temporary directory for processing [/tmp/pear/install] :

Temporary directory for downloads [/tmp/pear/install] :

Binaries directory [$prefix/bin] :

PHP code directory ($php_dir) [$prefix/share/pear] :

Documentation directory [$prefix/docs] :

Data directory [$prefix/data] :

User-modifiable configuration files directory [$prefix/cfg] :

Public Web Files directory [$prefix/www] :

Tests directory [$prefix/tests] :

Name of configuration file [/etc/pear.conf] :

Below is a suggested file layout for your new PEAR installation.  To

change individual locations, type the number in front of the

directory.  Type 'all' to change all of them or simply press Enter to

accept these locations.

1. Installation base ($prefix)                   : /usr

2. Temporary directory for processing            : /tmp/pear/install

3. Temporary directory for downloads             : /tmp/pear/install

4. Binaries directory                            : /usr/bin

5. PHP code directory ($php_dir)                 : /usr/share/pear

6. Documentation directory                       : /usr/docs

7. Data directory                                : /usr/data

8. User-modifiable configuration files directory : /usr/cfg

9. Public Web Files directory                    : /usr/www

10. Tests directory                               : /usr/tests

11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue: all

Installation base ($prefix) [/usr] :

Temporary directory for processing [/tmp/pear/install] :

Temporary directory for downloads [/tmp/pear/install] :

Binaries directory [$prefix/bin] :

PHP code directory ($php_dir) [$prefix/share/pear] :

Documentation directory [$prefix/docs] :

Data directory [$prefix/data] :

User-modifiable configuration files directory [$prefix/cfg] :

Public Web Files directory [$prefix/www] :

Tests directory [$prefix/tests] :

Name of configuration file [/etc/pear.conf] :

Below is a suggested file layout for your new PEAR installation.  To

change individual locations, type the number in front of the

directory.  Type 'all' to change all of them or simply press Enter to

accept these locations.

1. Installation base ($prefix)                   : /usr

2. Temporary directory for processing            : /tmp/pear/install

3. Temporary directory for downloads             : /tmp/pear/install

4. Binaries directory                            : /usr/bin

5. PHP code directory ($php_dir)                 : /usr/share/pear

6. Documentation directory                       : /usr/docs

7. Data directory                                : /usr/data

8. User-modifiable configuration files directory : /usr/cfg

9. Public Web Files directory                    : /usr/www

10. Tests directory                               : /usr/tests

11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue:

Beginning install...

2.至此,pear安装完毕,我们就可以安装qqwry了。

#pecl install qqwry-beta

修改php配置文件,将该模块写入。

#vim /etc/php.ini

extension=qqwry.so

3.qqwry就安装好了,这时需要重启httpd服务。

#service httpd restart

转载于:https://blog.51cto.com/yyyummy/1439455

使用pecl安装qqwry相关推荐

  1. php7安装qqwry,使用pecl安装qqwry

    QQWry 是一个php扩展,这个扩展的作用,就是根据ip来获取纯真数据库(QQWry.Dat)的地址信息.我们通常使用pecl来安装qqwry,我们安装pecl需要安装pear.pear是PHP扩展 ...

  2. Mac M1 brew安装php pecl安装扩展包失败解决方案

    前言: 电脑是新到的,纯净环境安装的brew,正常装了php7.4,结果pecl装啥都不成,重装n多次,折腾了一下午都没解决. 下面是环境参数: 报错信息: 网上查遍了,没有一个有用的,最后突发奇想, ...

  3. install pecl php_centos php pecl 安装的方法

    centos php pecl安装的方法:首先更新yum源,安装php7:然后通过"$ yum install php-pear"命令安装PECL:最后配置"php.in ...

  4. php7.1 安装pecl,mac pecl 安装php7.1扩展教程

    mac pecl 安装php7.1扩展教程,目录下,其他的,就行,很简单,这个时候 mac pecl 安装php7.1扩展教程 易采站长站,站长之家为您整理了mac pecl 安装php7.1扩展教程 ...

  5. PHP7 pecl 安装 mongodb扩展 和 PHPLIB

    安装PECL //php版本 > 7 $ wget http://pear.php.net/go-pear.phar $ php go-pear.phar //php版本 < 7 $ yu ...

  6. PHP:PECL 安装扩展

    PHP:PECL扩展安装 问题:Win环境下composer更新过程中提示缺少这些PHP扩展 解决办法: 使用PHPinfo查看PHP版本信息 (关注标注地方是为了选对版本) 进入这个网站:https ...

  7. Mac上通过pecl安装PHP扩展

    注意 1. 如果pecl收录了你需要的扩展,例如mbstring,即可通过以下方法来安装扩展: sudo pecl search mbstring sudo pecl install mbstring ...

  8. php 通过 pecl 安装 swoole 扩展

    简介 Pecl 全称 The PHP Extension Community Library,php 社区扩展库,由社区编写,维护.使用 pecl 方便之处在于我们不用到处找源码包下载编译,配置,不用 ...

  9. pecl安装扩展(首选)

    2019独角兽企业重金招聘Python工程师标准>>> yum install libssh2 libssh2-devel yum install php70w-pear pecl ...

最新文章

  1. [转] Java快速教程
  2. 开发短视频APP跟上时代的快车
  3. tinyint对应什么数据类型_学习西门子S7-200系列PLC不得不掌握的数据类型
  4. Kettle使用_11 CSV文件输入输出复制数量
  5. python爬虫实际应用_如何使用python爬虫论坛?
  6. pytorch使用masked掩盖某些值(筛选值)
  7. 设计社交网络的数据结构
  8. 自学python到什么程度可以找工作-Python学到什么程度就可以找工作?
  9. eclipse 重构功能。
  10. 《CCNA学习指南:数据中心(640-911)》——2.5 考试要点
  11. 水声方位估计 - MUSIC算法
  12. 商务与经济统计_电子商务类北大核心期刊目录大汇总!(推荐收藏!)
  13. 计算机上静音快捷键是什么,电脑静音快捷键是什么(电脑静音快捷键怎么设置)...
  14. 一文带你搞懂pandas中的时间处理(详细)
  15. C++高阶 什么是Trivial types?
  16. 如何去除图片背景颜色?怎样将背景色变透明?
  17. 2020计算机考试内容,2020年全国计算机二级OFFICE考试内容
  18. 【Java】通讯录管理系统小项目
  19. 安卓移动应用开发之从零开始写安卓小程序
  20. java软件测试经典案例,java语言编程案例 - Mrsjjl的个人空间 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

热门文章

  1. (0014)iOS 开发之Mac自带的Apache本地服务器玩耍(01)
  2. html自动移动滚动条,css隐藏移动端滚动条并平滑滚动
  3. java json 去重_js操作两个json数组合并、去重,以及删除某一项元素
  4. redis windows版本的使用
  5. IMAP IDLE模式(推送邮件)
  6. C#中的==、Equal、ReferenceEqual(转载)
  7. 判断iis是否已经安装
  8. 无重复数字的随机数字数组
  9. Android Studio停留在“Indexing paused due to batch update”的解决方案
  10. 解决百度网盘(百度云)分享链接不存在失效、分享的文件已经被取消的问题