Linux system installation MONGO extension method

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

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.

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: info-contact@alibabacloud.com 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.