1. Download
https://www.mongodb.com/download-center/community?jmp=nav
Installation procedure (where to 4.0.6 version, for example)
3. Configuration Parameters
3.1 Creating D: \ mongodb \ data \ log directory, used to store log files;
3.2 D: New mongodb.log \ mongodb \ data \ log directory, used to store log information;
3.3 to create D: \ mongodb \ data \ db directory, the database used to store the data,
3.4 and D: Create mongo.config \ mongodb the directory and copy the text within the document follows:
## = data file where the data corresponding to the stored directory
dbpath = d: \ mongodb \ Data \ DB
## corresponding to the log file where the path to the log file =
logpath = D: \ mongodb \ Data \ log \ mongodb.log
## using additional error log mode, the log is a configuration option appended mongodb to existing log file, rather than re-create a new file
logappend = to true
# enable log file is enabled by default
. TECHNOLOGY iNFORMATION = to true
# this option can filter out some useless log information, if necessary debug set to false
quiet to true =
The default port number is # 27017
port = 27017
4. Test whether the installation is successful (installation directory bin directory below, click mongod.exe, if flashed exit instructions to install properly )
5. Installation Service
First enter the installation directory's bin folder, use the following command:
mongod --logpath "D:\mongodb\data\log\mongodb.log" --logappend --dbpath "D:\mongodb\data\db" --serviceName "MongoDB" --install
6. Configure environmental parameters (found in the system path variable, the increase in variable values after window7 window8 or double-click to open at the end; C: \ Program Files \ MongoDB \ Server \ 3.4 \ bin after configured, you can continue to call in any directory mongo command)
7. recommend the use of graphical tools Robo
8.windows version is set to boot from the start service