This seriesArticleMongoDB will be used as the data storage carrier of nosql. The display carrier uses aspnetmvc3 and the dependency injection container uses unity Application 2.
MongoDB must be installed first.
1. Download MongoDB
Address: http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.0.zip
Currently, MongoDB does not have one-click Installation Software for MSI, so you need to manually decompress the configuration. MongoDB version has a Convention rule: the odd version is the development version, and the even version is the stable version.
Ii. Configure MongoDB
First, decompress the ZIP file to drive D: \ MongoDB.
Create and save the MongoDB database file directory on drive F: \ MongoDB \ data F: \ MongoDB \ logs
Start cmd
1Cd d: \ MongoDB \Bin2 D:3Mongod -- dbpath = F: \ MongoDB \ data
Sat Jan 08 18:49:34 [initandlisten] waiting for connections on port27017
Sat Jan 08 18:49:34 [websvr] Web Admin Interface listening on port28017
The above two sentences are the flag. Open http: // 127.0.0.1: 27017/in the browser/
Http: // 127.0.0.1: 28017/
The above shows that MongoDB has been successfully installed.
Note: The cmd window cannot be closed. The MongoDB service is also disabled.
3. Configure MongoDB to the Windows service.
D: \ MongoDB \ bin> mongod -- dbpath = F: \ MongoDB \ data -- logpath =F: \ MongoDB \ logs \ logs.txt-- Logappend -- bind_ip 127.0.-- directoryperdb -- install
Close all cmd forms.
Open Control Panel-> Administrative Tools => Service
If it is not started, start it. If it is started, ignore it.
MongoDB has been successfully installed and added to the service.
The next section briefly describes MongoDB operations.