1. Download MongoDB, unzip
2. Create a new path, such as D:\mongodb, to copy the extracted bin directory to this directory
3. In the new data directory under the D:\mongodb directory, create a new two directory under the data directory: DB and log.
4. Open the command line, enter the directory D:\mongodb\bin, enter Mongod.exe--dbpath d:/mongodb/data/db, you may be prompted“waiting for connections on port 27017 "When you enter the address" localhost:27017 "into the browser, ok! go back to the Doc window. You may see "admin Web Console waiting for connections on port 28017 "and then back to the browser. Enter "localhost:28017", ok!
5. Open another DOS window, go to the D:\mongodb2.0\bin directory, execute the command "D:\mongodb2.0\bin>mongo", you can see
MongoDB Shell version:2.4.8
Connecting To:test
Ok!
6. You can add to the system service, start the command line as an administrator, go to the bin directory, run the command mongod-dbpath "d:\mongodb\data\db"--logpath "d:\mongodb\data\log\ Mongodb.log "--install--servicename" MongoDB "is viewed in the computer-administration-services and applications.
Installing MongoDB under Win7