Mongodb for MAC Installation

Source: Internet
Author: User

Two years ago the use of MongoDB, has not had the opportunity to use again, the most recent company made a cloud print small ticket service platform, data storage and is stored through MongoDB, through this opportunity to record their own re-learning process and simple installation; currently in the production environment The version of 3.0 is used on Liunx.

This record under the installation of your own Mac under MongoDB

Step1. Download the unpacking package via MongoDB's website and download it from the command line, but the individual prefers a more conventional approach.

https://www.mongodb.org/downloads?_ga=1.207388625.331138433.1436002259

Step2. Unzip the downloaded compression table can be installed to complete, start

Go to the Bin directory and execute:./mongod

Execution can see the following error, need to create a data storage directory for MongoDB

Create a data/db directory at the root/under which to place the MongoDB data and set permissions for the directory sudo mkdir-p/data/db sudo chown-r lishijia/data created again The./mongod is started successfully; In addition, a client link tool is provided: Robomongo

Mongodb for MAC Installation

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.