I recently installed MongoDB Community Edition on macOS. The manual says to use brew services start [email protected] to start the server.
When I want to shutdown the server, I enter mongo shell and type use admin and then type db.shutdownServer(). But when I reboot the computer, the server is auto started. How do I prevent it from auto starting at reboot in MacOS?
Your computer can have multiple LaunchAgents folders.
My homebrew.mxcl.mongodb-community.plist file was under:
/Users/YOUR-USERNAME/Library/LaunchAgents/
Deleting it should solve this issue. After that a manual start is needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With