Windows Installation
Lesson 3Author : GOUP
Last Updated : September, 2020
Instructions
- Download the Windows installer
- Step through installer (be sure to download compass)
- Add mongod.exe to path
- Create ‘/data/db’ directory
- Create this at root directory of hard-drive
- Ensure that current user has read/write permissions
- Or customize location using:
- mongod –dbpath
- I put this at the root directory of my home folder
- Create this at root directory of hard-drive
- Start MongoDB server
- mongod
- Connect to MongoDB server from client – (in new terminal window) mongo –host localhost:27017 – (in compass) use the default settings