Installation and configuration of MongoDB in Windows environment

Source: Internet
Author: User

MongoDB is a high-performance document-based database that introduces the installation and configuration of MONGDB in a Windows environment

Get MongoDB

Open the official website www.mongodb.org, find the download link on the top right of the page

Click Download to download

Currently the latest version is 3.2.4, download good after selecting the installation directory, here select d:\mongo3.2

Configure MongoDB

Create a new Mongo.config file under directory d:\mongo3.2, this file is used to configure MongoDB,

Create a new directory db under D:\mongo3.2\bin to hold the database

Create a new directory log under D:\mongo3.2\bin to hold log information

Enter the following in the Mongi.config file

Dbpath=d:\mongo3.2\bin\dblogpath=d:\mongo3.2\bin\log\log.logport=27018servicename= Mongodbmasterservicedisplayname=mongodbmasterdisplayname

Configuration file Description:

ServiceName: Specifies the name of the service, primarily used to create multiple services in a stand-alone environment for related testing, and production environments are not typically set up

Servicedisplayname: Specifies the display name of the service, primarily used to create multiple services in a stand-alone environment for related testing, and production environments are not typically set up

Open the Cmd window, navigate to the MongoDB installation directory bin, and enter the following:

Mongod--config d:\mongo3.2\mongi.config--install to generate MongoDB services

Installation and configuration of MongoDB in Windows environment

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.