• 安裝

iOS培訓(xùn),Swift培訓(xùn),蘋果開(kāi)發(fā)培訓(xùn),移動(dòng)開(kāi)發(fā)培訓(xùn)

  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

iOS培訓(xùn),Swift培訓(xùn),蘋果開(kāi)發(fā)培訓(xùn),移動(dòng)開(kāi)發(fā)培訓(xùn)

 

  • 啟動(dòng)MongoDB

    上面提示的直接啟動(dòng)mongo的方法

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

&nbs

網(wǎng)友評(píng)論