I read this doc to learn how to start MongoDB on windows and write some useful note there
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
1. Start MongoDB
To start MongoDB, execute from the Command Prompt:
C:\mongodb\bin\mongod.exe
You may specify an alternate path for \data\db with the dbpath setting for mongod.exe, as in the following example:
C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data
2.Connect to MongoDB
Connect to MongoDB using the mongo.exe shell. Open another Command Prompt and issue the following command:
C:\mongodb\bin\mongo.exe
(注意这里是另起一个cmd去做数据库的操作)