Mac 安装MongoDB
1.设定 brew tap mongodb/brew 2.安装 ➜ var brew install mongodb-community Updating Homebrew... ==> Installing mongodb-community from mongodb/brew ==> Downloading https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.2.0.tgz ######################################################################## 100.0% ==> Caveats To have launchd start mongodb/brew/mongodb-community now and restart at login: brew services start mongodb/brew/mongodb-community Or, if you don't want/need a background service you can just run: mongod --config /usr/local/etc/mongod.conf ==> Summary 🍺 /usr/local/Cellar/mongodb-community