Mac installation of Mamp MongoDB

Source: Internet
Author: User
Tags brew install mongodb install mongodb mongodb server openssl

First install the MONGODB server:

1. Brew Install MongoDB

2, modify the vim/usr/local/etc/mongod.conf file, DB Road strength

  

3, create, modify/data/db, and for writable permission;

4, start the service side. Brew Services Start MongoDB

Installing the MongoDB Extension for PHP

1, Http://pecl.php.net/package/mongo Download the latest MONGO package;

2. Enter into this directory, enter:/applications/mamp/bin/php/php5.6.30/bin/phpize

3,./configure--with-php-config=/applications/mamp/bin/php/php5.6.30/bin/php-config

4. Make

5. Sudo make install

6, after the installation is successful, mongo.so will be copied to the/applications/mamp/bin/php/php5.6.30/lib/php/extensions/no-debug-non-zts-20131226 directory.

7, configuration Mamp php.ini;

  

8, restart Apache, you can see the MONGO service.

9.

When installing the MONGO extension, if you are prompted for a missing OpenSSL file, you can copy the OpenSSL folder in the Mamp to the installation directory

The OpenSSL folder under the Mamp directory

Copy to the installation directory

Mac installation of Mamp MongoDB

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.