Skip to content

Instantly share code, notes, and snippets.

@artembeloglazov
Created February 26, 2013 06:42
Show Gist options
  • Save artembeloglazov/5036462 to your computer and use it in GitHub Desktop.
Save artembeloglazov/5036462 to your computer and use it in GitHub Desktop.
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mongodb/2.2.0-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
If this is an upgrade and you already have the homebrew.mxcl.mongodb.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
cp /usr/local/Cellar/mongodb/2.2.0-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or start it manually:
mongod run --config /usr/local/etc/mongod.conf
The launchctl plist above expects the config file to be at /usr/local/etc/mongod.conf.
==> Summary
/usr/local/Cellar/mongodb/2.2.0-x86_64: 19 files, 170M, built in 30 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment