Last active
September 10, 2018 16:45
-
-
Save nestoru/08340a71abb1b25a3a266872c0a86a26 to your computer and use it in GitHub Desktop.
MAC MongoDB installation
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
| # select one of available versions | |
| brew search mongodb | |
| # install | |
| brew install [email protected] | |
| # add executable to your path | |
| echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile | |
| . ~/.bash_profile | |
| # create db path | |
| sudo mkdir -p /data/db | |
| sudo chown -R `id -un` /data/db | |
| # run mongod | |
| mongod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment