Installing MongoDB under Win7

Source: Internet
Author: User

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

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.