export
PHP_AUTOCONF
=
/
usr
/
bin
/
autoconf
export PHP_AUTOHEADER = / usr / bin / autoheader
wget http: // pecl.php.net / get / mongo-1.2.7.tgz
tar zxvf mongo-1.2.7.tgz
cd mongo-1.2.7
/ usr / local / php / bin / phpize
. / configure --with-php-config = / usr / local / php / bin / php-config
make && make install
// 最后在php.ini中加入以下行并重启webserver
extension =mongo.so
export PHP_AUTOHEADER = / usr / bin / autoheader
wget http: // pecl.php.net / get / mongo-1.2.7.tgz
tar zxvf mongo-1.2.7.tgz
cd mongo-1.2.7
/ usr / local / php / bin / phpize
. / configure --with-php-config = / usr / local / php / bin / php-config
make && make install
// 最后在php.ini中加入以下行并重启webserver
extension =mongo.so