Skip to content

Instantly share code, notes, and snippets.

@bryanmacfarlane
Last active April 3, 2018 10:19
Show Gist options
  • Save bryanmacfarlane/bf021d144ac50d220aa0a12271392db8 to your computer and use it in GitHub Desktop.
Save bryanmacfarlane/bf021d144ac50d220aa0a12271392db8 to your computer and use it in GitHub Desktop.
Install mongodb on mac
# 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
@macroramesh6
Copy link

Hi @bryanmacfarlane. May I know why you didn't do symbolic links to other binaries on the bin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment