hat’s a clean way to stop mongod on Mac OS X?

It’s probably because launchctl is managing your mongod instance. If you want to start and shutdown mongod instance, unload that first: Then start mongod manually: You can find your mongod.conf location from ~/Library/LaunchAgents/org.mongodb.mongod.plist. After that, db.shutdownServer() would work just fine. Added Feb 22 2014: If you have mongodb installed via homebrew, homebrew actually has a handy brew services command. To … Read more