Created
February 26, 2013 06:42
-
-
Save artembeloglazov/5036462 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> 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