Download and install MongoDB download
Reference: MongoDB official website http://www.mongodb.org/
Download Mongodb-win32-x86_64-2008plus-ssl-3.0.0-signed,msi
Tip: See how many bits the system is
WMIC OS get Osarchitecture
Installation
Reference: official website Tutorial http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/?_ga=1.253820552.1291971383.1425393574
All the way to the point, and specify the installation path
Specify data File Reference: http://www.cnblogs.com/lipan/archive/2011/03/08/1966463.html
New Data Catalog
F:\MongoDB\data
Specify Data Directory
Mongod–dbpath F:\MongoDB\data
Run effect
http://localhost:27017/
Verifying the installation
You can connect MongoDB with the command line as follows:
Indicates successful installation
Create a Local Service
Reference:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/?_ga=1.253820552.1291971383.1425393574
http://my.oschina.net/xiaomaoandhong/blog/62499
Create a log file
F:\MongoDB\log\mongodb.log
Creating a configuration file
F:\MongoDB\mongod.cfg
Dbpath=f:\mongodb\datalogpath=f:\mongodb\log\mongodb.log
Create a service
Sc.exe create MongoDB binpath= "\" F:\MongoDB\bin\mongod.exe\ "--service--config= \" F:\MongoDB\mongod.cfg\ "" Displayname= "MongoDB" start= "Auto"
Delete Service
Start the service
NET Startmongodb
"Node. JS Learning"--(7)--Install MongoDB