Created
July 11, 2017 22:46
-
-
Save terakilobyte/39e90e37ed977375d3b71e588b59055a to your computer and use it in GitHub Desktop.
Install MongoDB on OSX/Linux
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
# Just copy and paste all of the below. This assumes you've downloaded MongoDB to your ~/Downloads directory! | |
mkdir ~/MongoDB && find ~/Downloads -name "mongodb-*.tgz" | \ | |
xargs -I@ tar -C ~/MongoDB -xzvf @ --strip-components 1 && \ | |
printf '\n# MongoDB Setup Begin\nMONGODB="$HOME/MongoDB/bin"\nPATH="$PATH:$MONGODB"\n# MongoDB Setup End\n' \ | |
>> `(find $HOME -maxdepth 1 -type f -name "*.zshrc" -o -name "*.bashrc")` \ | |
&& source `(find $HOME -maxdepth 1 -type f -name "*.zshrc" -o -name "*.bashrc")` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment