安装pecl
cd/usr/local/php/bin/
wgethttp://pear.php.net/go-pear.phar-Ogo-pear.php
phpgo-pear.php
##回车默认安装
安装php扩展
peclsearchkey-word#用于查找扩展
peclinstallkey-word#用于安装扩展
查询相关扩展
[root@localhostsrc]#peclsearchswoole
Retrievingdata...0%
Matchedpackages,channelpecl.php.net:
=======================================
PackageStable/(Latest)Local
swoole1.8.12(stable)1.8.12Event-drivenasynchronousandconcurrentnetworkingenginewithhighperformanceforPHP.
[root@localhostsrc]#peclsearchxdebug
Retrievingdata...0%
Matchedpackages,channelpecl.php.net:
=======================================
PackageStable/(Latest)Local
xdebug2.4.1(stable)Providesfunctionsforfunctiontracesandprofiling
安装相关扩展peclinstallxdebug
##安装完成之后,输出
Buildprocesscompletedsuccessfully
Installing'/usr/lib64/php/modules/xdebug.so'
installok:channel://pecl.php.net/xdebug-2.4.1
configurationoption"php_ini"isnotsettophp.inilocation
Youshouldadd"zend_extension=/usr/lib64/php/modules/xdebug.so"tophp.ini
##根据提示,我们在php.ini的最后添加
zend_extension=/usr/lib64/php/modules/xdebug.so
peclinstallswoole
|