[Node. js learning] -- (7) -- install Mongodb and node. jsmongodb
Download and install mongodb
Reference: mongodb official website http://www.mongodb.org/
Download mongodb-win32-x86_64-2008plus-ssl-3.0.0-signed, msi
Knowledge: view the number of digits in the system
wmic os get osarchitecture
Install
Reference: Official website tutorial http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows? _ Ga = 1.253820552.1291971383.1425393574
All the way crazy, and specify the installation path
Specify data file reference: http://www.cnblogs.com/lipan/archive/2011/03/08/1966463.html
Create a data directory
F:\MongoDB\data
Specify data directory
mongod –dbpath F:\MongoDB\data
Running Effect
Http: // localhost: 27017/
Verify Installation
You can use the command line to connect to mongodb, as shown below:
The installation is successful.
Create a local service
Refer:
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
Create 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 a service
Start the service
net startMongoDB