Created
May 4, 2018 16:19
-
-
Save turing4ever/28ea2e9a5a7fb0cc672609d32466f131 to your computer and use it in GitHub Desktop.
How to setup 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
# Install mongodb | |
brew update | |
brew install mongodb | |
mkdir -p /data/db | |
sudo chown -R `id -un` /data/db | |
# Get a sample databaes | |
wget http://media.mongodb.org/zips.json | |
mongoimport -v --file=zips.json #loads into test.zips | |
# if you want to specify a database and collection | |
# mongoimport --db scratch --collection zips --file zips.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment