Last active
November 21, 2017 03:20
-
-
Save henryalee/5810382 to your computer and use it in GitHub Desktop.
Install mongodb with homebrew and set it to autostart
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
brew install mongo | |
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 | |
# Mongo might be named differently, try this | |
cp /usr/local/Cellar/mongodb**/**/*plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/*mongo*plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment