Skip to content

Instantly share code, notes, and snippets.

@tianp
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianp/8c7a4dc7f450a186cba8 to your computer and use it in GitHub Desktop.
Save tianp/8c7a4dc7f450a186cba8 to your computer and use it in GitHub Desktop.
Start/Stop Homebrew installed MongoDB service on Mac OSX
// Start MongoDB service
launchctl start org.mongodb.mongod
// Stop MongoDB service
launchctl stop org.mongodb.mongod
// Make alias, for easier future
alias mongostart="launchctl start org.mongodb.mongod"
alias mongostop="launchctl stop org.mongodb.mongod"
// MongoDB log file location, just in case
/usr/local/var/log/mongodb/mongo.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment