php 得 pecl工具安装。。。。

安装pecl

cd /usr/local/php/bin/wget http://pear.php.net/go-pear.phar -O go-pear.phpphp go-pear.php##回车默认安装

安装php扩展

pecl search key-word    #用于查找扩展pecl install key-word   #用于安装扩展

查询相关扩展

[root@localhost src]# pecl search swooleRetrieving data...0%Matched packages, channel pecl.php.net:=======================================Package Stable/(Latest) Localswoole  1.8.12 (stable) 1.8.12 Event-driven asynchronous and concurrent networking engine with high performance for PHP.[root@localhost src]# pecl search xdebugRetrieving data...0%Matched packages, channel pecl.php.net:=======================================Package Stable/(Latest) Localxdebug  2.4.1 (stable)        Provides functions for function traces and profiling

安装相关扩展

pecl install xdebug##安装完成之后,输出Build process completed successfullyInstalling '/usr/lib64/php/modules/xdebug.so'install ok: channel://pecl.php.net/xdebug-2.4.1configuration option "php_ini" is not set to php.ini locationYou should add "zend_extension=/usr/lib64/php/modules/xdebug.so" to php.ini##根据提示,我们在php.ini的最后添加zend_extension=/usr/lib64/php/modules/xdebug.sopecl install swoole

设置全局php.ini,设置后可以自动添加.

/opt/remi/php73/root/usr/bin/pear config-set php_ini  /etc/opt/remi/php73/php.ini 
/opt/remi/php73/root/usr/bin/pecl install redis     
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容