How to start a mongodb service on mac OS X?

前端 未结 10 2025
一整个雨季
一整个雨季 2021-01-31 03:02

I have already installed Mongodb on my mac but the process is currently not running. How do I start the Mongodb service so that I can start using the commands?

10条回答
  •  隐瞒了意图╮
    2021-01-31 03:28

    Just do brew services start mongodb-community. Example:

    $ brew services list
    Name              Status  User Plist
    mongodb-community stopped      
    $ brew services start mongodb-community
    ==> Successfully started `mongodb-community` (label: homebrew.mxcl.mongodb-community)
    

    Of course, depends on your installation. This is the typical brew install.

提交回复
热议问题