Installing MongoDB under WIN10

Source: Internet
Author: User

1. Go to the official website to download and install: Https://www.mongodb.com/download-center#atlas;

Or: http://dl.mongodb.org/dl/win32/x86_64 here to download, and then select the appropriate version;

2. After the download is complete, unzip to the D or C drive root directory :

3. Create the required folders: D:\mongodb\data\db, D:\mongodb\data\log\mongod.log; Install DB and log files respectively;

4. Start the service: Here are two types of command-line methods:

Switch to the bin directory of the MongoDB directory, execute the Mongod.exe :

Mongod--dbpath D:\mongodb\data\db

The above information appears in CMD, which proves that the MONGDB service has been started and the port number is: 27017

Configuration service: Execute the following statement in the Bin directory : (Where: servicename represents the service name, using administrator status)

Mongod.exe--dbpath "D:\mongodb\data\db"--logpath "D:\mongodb\data\log\mongod.log"--install--servicename "MongoDB"

Installing MongoDB under WIN10

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.