software Download
Download MongoDB the latest package: http://www.mongodb.org/downloads
Download mongodb visualization interface,mongovue:/http download.csdn.net/detail/lovesummerforever/8036417
Software Installation
MongoDB the server-side installation steps are as follows
1, to abide by the MongoDB specification, choose their own disk creation folder, here I choose the D Drive, Create the following directory structure
D:\mongodb as the root directory for installation
D:\mongodb\data Data Catalog
D:\mongodb\data\db Database directory
D:\mongodb\data\log database log directory
2. Unzip the latest zipped package of thedownloaded mongodb , copy the bin folder to MongoDB folder.
3,mongo.exe is the shell client, and mongod is the database itself, Can be run under a DOS window.
For Ease of operation, we can configure the MongoDB 's path path so that you don't have to go to MongoDB 's in the bin directory
4 , start the process
Disposable Boot MongoDB service.
need to be dos window to run, < C:\users\zhengqi-hf>mongod--dbpath=d:\mongodb\data\db
Integration of MONGODB services into Windows
and relational databases MySQL like, MySQL need to start MySQL Services, while MongoDB need to start MongoDB database service. However, once the DOS boot mongodb window is closed, the service will be stopped, so every time it is necessary to start, it is a very laborious thing, we can put MongoDB services are integrated into Windows of the service. Let mongodb service start up with the boot. The commands are as follows:
To create a service:
D:\mongodb\bin\mongod.exe--dbpathd:mongodb\data\db--logpath D:\mongodb\data\log\mongodb.log-- Install--servicename MongoDB
start mongodb Service:
NET START MongoDB
To delete a service:
D:\mongodb\bin\mongod.exe--dbpath d:mongodb\data\db--logpath D:\mongodb\data\log\mongodb.log-- Remove--servicename MongoDB
Close MongoDB Service:
Netstop MongoDB
we'll be in Windows service to see what we have added MongoDB Service:
the next article is mainly about MongoDB Set User access rights
In layman's MongoDB (iii) mongodb download and install