安装mongodb扩展

curl -O https://pecl.php.net/get/mongodb-1.2.3.tgz
tar zxf mongodb-1.2.3.tgz

cd mongodb-1.2.3
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make&&make install
原文地址:https://www.cnblogs.com/xiaobiaomei/p/10921963.html