ubuntu安装php的 mongodb扩展
wget https://pecl.php.net/get/mongodb-1.2.6.tgz
tar -zxvf mongodb-1.2.6.tgz
cd mongodb-1.2.6
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config make && make install
vim /etc/php.ini
extension=mongodb.so
wget https://pecl.php.net/get/mongodb-1.2.6.tgz
tar -zxvf mongodb-1.2.6.tgz
cd mongodb-1.2.6
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config make && make install
vim /etc/php.ini
extension=mongodb.so