php7安装qqwry,使用pecl安装qqwry

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

我们先来安装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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值