centos7 宝塔php7.2安装mongodb扩展

wget https://pecl.php.net/get/mongodb-1.5.3.tgz
tar zxvf mongodb-1.5.3.tgz 
cd mongodb-1.5.3
/www/server/php/72/bin/phpize
./configure --with-php-config=/www/server/php/72/bin/php-config
make && make install
make test

修改php.ini

extension = /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so