[One of nosql enterprise website series] MongoDB Installation

Source: Internet
Author: User
Tags mongodb version

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.