Linux system installation MONGO extension method
Installation steps:
Environment
nginx/1.4.4
PHP 5.4.22
MongoDB 2.4.10
1. Download Extended installation package
wget http://pecl.php.net/get/mongo-1.4.5.tgz
2. Compile and install
Tar xvf mongo-1.4.5.tgz-c/usr/src
cd/usr/src/mongo-1.4.5/
Phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install
3. Configure PHP.ini, add the following two-line server tutorial
[MONGO]
Extension =/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/mongo.so
4. Reload PHP-FPM, Nginx
Pkill PHP-FPM
/usr/local/php/sbin/php-fpm
/usr/local/nginx/sbin/nginx-s Reload
5. Verify that the installation is successful
php-m | grep MONGO
# or view the Phpinfo page
This is the Linux system installation MongoDB expansion of the steps, want to install MongoDB extended users, follow the steps above to install it.