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