Download
MongoDB's official website is: http://www.mongodb.org/
Can be downloaded on the official website, but I tried a special trouble, all found a simple way, you can download directly at this address zip,http://dl.mongodb.org/dl/win32/x86_64
Installation
1. Feel free to create your favorite path, C:\lucas\mongodb
2. Under C:\lucas\mongodb, download the zip file under decompression, and then create a new Data folder under C:\lucas\mongodb C:\lucas\mongodb\data
3. Then set up the Db,log two folders respectively, at this point MongoDB has the following folder
C:\lucas\mongodb\bin
C:\lucas\mongodb\data\db
C:\lucas\mongodb\data\log
Create a log file under the log folder MongoDB.log, which is C:\lucas\mongodb\data\log\MongoDB.log
4. Command-line installation
C:\lucas\mongodb\bin>mongod -dbpath "C:\lucas\mongodb\data\db"
Open http://127.0.0.1:27017/after installation is complete
See
It looks like you is trying to access MongoDB over HTTP on the native driver port.
The instructions have been installed successfully.
5. Operation:
Double-click the Mongod.exe under Bin (Note that D, this is the starter program)
After the startup program is turned on, run the Mongo.exe program (note that there is no d), the interface is as follows
Test database Operations
>help (查看相关信息)>db.foo.insert({a:1}) (往foo表插入a,1字段值,foo表为默认表)>db.foo.find() (查看foo表数据)
MongoDB Download and Installation