Installation and configuration of MongoDB under Windows

Source: Internet
Author: User

1----->:https://www.mongodb.com/dr/fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.4-signed.msi/download

2-----> Custom Installation:

3-----> CREATE database File installation files and log files (in my case log files in D:\data\dbConf data files in D:\data)

Specify the path to DB and log in the Mongo.config file: dbpath=d:\data\db
Logpath=d:\data\dbconf\mongodb.log

4-----> in the cmd window into the MONGO installation directory (D:\mongodb\bin)

5-----> Open cmd Command as Administrator

In the bin\ directory of the installation directory: Mongod--config D:\mongodb\mongo.config--install--servicename "MongoDB"

To start successfully. But now is the CMD Black window running under MongoDB, now we need her to run in Windows background

(1) CTRL + C ends the process in the CMD window

(2) Delete the. lock file under the D:\data\db path

3: Re-open a cmd input services.msc find the MONGO program running in the background double click to start

Now your MongoDB service process is running silently in Windows background

Installation and configuration of MongoDB under Windows

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.