Created
January 31, 2018 05:59
-
-
Save cookie-ag/14522e379204a61361274ab0aab7f31c to your computer and use it in GitHub Desktop.
Install MongoDB on Windows 10
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
- 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 |
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
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