Skip to content

Instantly share code, notes, and snippets.

@cookie-ag
Created January 31, 2018 05:59
Show Gist options
  • Save cookie-ag/14522e379204a61361274ab0aab7f31c to your computer and use it in GitHub Desktop.
Save cookie-ag/14522e379204a61361274ab0aab7f31c to your computer and use it in GitHub Desktop.
Install MongoDB on Windows 10
- Download latest community version: https://www.mongodb.com/download-center#community
- create two folders: D:\data\db and D:\data\log
- create a configuration file: attached below
- Install windows service: /path/to/mongod.exe --config "D:\data\mongod.cfg" --install
- Start service: net start MongoDB
- Stop service: net stop MongoDB
- Remove windows service: /path/to/mongod.exe --remove
systemLog:
destination: file
path: c:\data\log\mongod.log
storage:
dbPath: c:\data\db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment