首先下载mongo扩展包
http://pecl.php.net/package/mongo
开始安装把
wget http://pecl.php.net/get/mongo-1.5.8.tgz
tar zxvf mongo-1.5.8.tgz
cd mongo-1.5.8
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
不谢!