Created
November 13, 2011 16:20
-
-
Save trivektor/1362285 to your computer and use it in GitHub Desktop.
Mongo DB post-install instructions
This file contains hidden or 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
| If this is your first install, automatically load on login with: | |
| mkdir -p ~/Library/LaunchAgents | |
| cp /usr/local/Cellar/mongodb/1.8.2-x86_64/org.mongodb.mongod.plist ~/Library/LaunchAgents/ | |
| launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist | |
| If this is an upgrade and you already have the org.mongodb.mongod.plist loaded: | |
| launchctl unload -w ~/Library/LaunchAgents/org.mongodb.mongod.plist | |
| cp /usr/local/Cellar/mongodb/1.8.2-x86_64/org.mongodb.mongod.plist ~/Library/LaunchAgents/ | |
| launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist | |
| Or start it manually: | |
| mongod run --config /usr/local/Cellar/mongodb/1.8.2-x86_64/mongod.conf | |
| MongoDB 1.8+ includes a feature for Write Ahead Logging (Journaling), which has been enabled by default. | |
| This is not the default in production (Journaling is disabled); to disable journaling, use --nojournal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment