Linux system installation MONGO extension method

Source: Internet
Author: User
Tags config fpm install mongodb mongodb

Linux system installation MONGO extension method

Installation steps:



PHP 5.4.22

MongoDB 2.4.10

1. Download Extended installation package


2. Compile and install

Tar xvf mongo-1.4.5.tgz-c/usr/src




Make && make install

3. Configure PHP.ini, add the following two-line server tutorial


Extension =/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/

4. Reload PHP-FPM, Nginx



/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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.