安装pecl
cd /usr/local/php/bin/
wget http://pear.php.net/go-pear.phar -O go-pear.php
php go-pear.php
##回车默认安装
安装php扩展
pecl search key-word
pecl install key-word
查询相关扩展
[root@localhost src]# pecl search swoole
Retrieving data...0%
Package Stable/(Latest) Local
swoole 1.8.12 (stable) 1.8.12 Event-driven asynchronous and concurrent networking engine with high performance for PHP.
[root@localhost src]# pecl search xdebug
Retrieving data...0%
Package Stable/(Latest) Local
xdebug 2.4.1 (stable) Provides functions for function traces and profiling
安装相关扩展
pecl install xdebug
Build process completed successfully
Installing '/usr/lib64/php/modules/xdebug.so'
install ok: channel://pecl.php.net/xdebug-2.4.1
configuration option "php_ini" is not set to php.ini location
You should add "zend_extension=/usr/lib64/php/modules/xdebug.so" to php.ini
zend_extension=/usr/lib64/php/modules/xdebug.so
pecl install swoole