安裝
huijundeMacBook-Pro:~ huijunzhang$ brew install mongodb ... ==> Downloading https://homebrew.bintray.com/bottles/mongodb-3.2.9.el_capitan.bottle.tar.gz ######################################################################## 100.0% ==> Pouring mongodb-3.2.9.el_capitan.bottle.tar.gz ==> Caveats To have launchd start mongodb now and restart at login: brew services start mongodb 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/3.2.9: 17 files, 241.2M
啟動(dòng)MongoDB
上面提示的直接啟動(dòng)mongo的方法
mongod --config /usr/local/etc/mongod.conf
&nbs