Installing MongoDB with Homebrew

后端 未结 4 409
梦谈多话
梦谈多话 2020-12-07 11:24

I\'m relatively new to MongoDB and am trying to install MongoDB on my Mac with Homebrew, but I\'m getting the following error:

Error: No available formula wi         


        
4条回答
  •  死守一世寂寞
    2020-12-07 12:16

    first install mongoldb

    brew tap mongodb/brew
    

    Secondly install using this command. mangodb successfully installed

    brew install mongodb-community@4.0 
    

    You will get the output

    ==> CaveatsTo 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
    

提交回复
热议问题