pecl 轻松安装php扩展

PECL 的全称是 The PHP Extension Community Library ,是一个开放的并通过 PEAR(PHP Extension and Application Repository,PHP 扩展和应用仓库)打包格式来打包安装的 PHP扩展库仓库。通过 PEAR 的 Package Manager 的安装管理方式,可以对 PECL 模块进行下载和安装。来自百度百科

 

peal安装

 

1.yum erase php-pear

2.

# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

3.yum install --enablerepo=remi --enablerepo=remi-php56 php-pear





   

一、查看是否安装php扩展

  pecl search 扩展名称

二、安装

  pecl install 扩展名称

三、配置php.ini

  添加 extension=扩展名称

posted @ 2016-12-15 16:37  outstandingJie  阅读(7752)  评论(0编辑  收藏  举报