Ich hatte ein ähnliches Problem und das hat mir geholfen:
#!/usr/bin/env sh # checks to see if running launchctl list | grep mongo launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist launchctl remove homebrew.mxcl.mongodb pkill -f mongod rm -f ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist brew uninstall mongodb # double check existence ls -al /usr/local/bin/mong* ls -al ~/Library/LaunchAgents rm -R /usr/local/var/mongodb
Siehe auch meine Antwort hier: https://stackoverflow.com/questions/41913838/installed-docker-and-ran-a-container-mit-mongodb-now-brews-mongodb-isnt-work/41943399#41943399