Start / Stop MongoDB with Homebrew Start / Stop MongoDB with Homebrew mongodb mongodb

Start / Stop MongoDB with Homebrew


brew services start/restart/stop mongodb-community@4.0


For me I had multiple version of mongodb and when I tried to switching between them, I got this error

Error: Could not read the plist for `mongodb26`!

This is what I did to start mongodb26 service.

brew unlink mongodb24brew link mongodb26brew services start mongodb26


You can list services by doing brew services listand then as one of the answers said brew services start [NAME] or brew services stop [NAME]