Last active
April 3, 2018 10:19
-
-
Save bryanmacfarlane/bf021d144ac50d220aa0a12271392db8 to your computer and use it in GitHub Desktop.
Install mongodb on mac
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
# download first. from ~/Downloads directory | |
sudo mkdir -p /usr/local/bin/mongodb | |
tar -zxvf mongodb-osx-ssl-x86_64-3.6.1.tgz | |
sudo mv ./mongodb-osx-x86_64-3.6.1/* /usr/local/bin/mongodb/ | |
cd /usr/local/bin/ | |
sudo ln -s /usr/local/bin/mongodb/bin/mongo mongo | |
sudo ln -s /usr/local/bin/mongodb/bin/mongod mongod | |
sudo mkdir -p /data/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @bryanmacfarlane. May I know why you didn't do symbolic links to other binaries on the bin?