MongoDB mac Installation

Source: Internet
Author: User
Tags install mongodb mongodb mac

There are two common ways to install MongoDB:

First, download the installation

Second, homebrew installation

I'm using the second kind.

1. Update Homebrew

Brew Update

2, install MongoDB (super-privilege installation, otherwise it will be problematic)

sudo Install MongoDB

If everything goes well, it's already installed.

# Start Command mongod# start the client command MONGO

You can add MONGO to an environment variable,

# Addyour own directory to the export PATH=/usr/local/cellar/mongodb/3.2in ~/. Bash_profile. 1/bin:{$PATH}# update source. Bash_profile

Look at the configuration file

Vim/usr/local/etc/mogod.conf

The storage directory for the data is the default/data/db directory, which is guaranteed to have read and write permissions.

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