-
Notifications
You must be signed in to change notification settings - Fork 11
Install MongoDB Server
Xu Ding edited this page Apr 17, 2017
·
1 revision
- Create a folder for db:
mkdir ~/Desk/db - Run MongoDB server:
mongod --dbpath ~/Desktop/db - Access MongoDB sell:
mongo
If you have installed mongodb through homebrew then you can simply start mongodb through
brew services start mongodb
Then access the shell by
mongo
You can shut down your db by
brew services stop mongodb
For more options
brew info mongodb