且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

努力在Centos上安装PHP pecl

更新时间:2022-05-01 08:19:31

步骤1)导入REMI存储库

Step 1) import the REMI repo

CentOS 5

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm;
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm;

CentOS 6

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm;
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm;

第2步)安装php-pear

Step 2) install php-pear

yum --enablerepo=remi,remi-php55 install php-pear

第3步)安装pecl_http

Step 3) install pecl_http

pecl install pecl_http