centos7 php7利用pecl安装扩展
作者:互联网
1. 安装pecl
wget http://pear.php.net/go-pear.phar
php go-pear.phar
设置$prefix = /www/server/php/74 即当前php安装目录
2. 安装mongodb扩展
pecl install mongodb
3. 配置php.ini
extension = mongodb.so
4. 重启一下php-fpm
service php-fpm restart
标签:安装,php,mongodb,pear,centos7,go,php7,pecl 来源: https://blog.csdn.net/hbh112233abc/article/details/118416121