Install MongoDB under Mac

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

Use Brew installation, but brew is no longer updated,

Pass

sudo chown-r $ (whoami): admin/usr/local

This statement terminal has reminders.

Xcode-select--install

Need to install this Xcode-select

Brew install mongodbsed:. git/github_headers:no such file or directory==> downloading https://homebrew.bintray.com/ bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz############################################### ######################### 100.0%==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz==> Auto-updated homebrew! Updated 2 Taps (Homebrew/core, homebrew/versions).

You intend to install MongoDB via brew, which automatically updates the version of Ruby and homebrew, and then executes

Brew Install MongoDB

You can do it.

==> pouring mongodb-3.4.9.sierra.bottle.tar.gz

==> Caveats

To has launchd start MongoDB now and restart at login:

Brew Services Start MongoDB

Or, if you don ' t want/need a background service can just run:

Mongod--config/usr/local/etc/mongod.conf

Start MongoDB Service

Brew Services Start MongoDB

Browser

http://localhost:27017

Show

It looks like you is trying to access MongoDB over HTTP on the native driver port.

Prove the installation was successful.

Configure MongoDB

Mongod--config/usr/local/etc/mongod.conf

Install MongoDB under Mac

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.