Windows Platform Installation MongoDB

Source: Internet
Author: User

The first step:

Go to mongodb official website https://www.mongodb.com/download-center?jmp=nav#community Download the latest version of the installation package

Please select the appropriate download according to your operating system version.

Step Two:

After downloading, start the installation

Choose Custom to customize the installation module and installation location of MongoDB

Step Three:

After completing the installation, go to the root directory of the MongoDB installation, here I am installed in the d:/mongodb/folder, you can choose your own

After that, create a data folder and create a DB folder inside to store the MongoDB directory.

Because MongoDB does not actively create the data catalog, it needs to be created manually

Fourth Step:

Start MongoDB When you're done creating

Open a command prompt

Go to the Bin folder in the MongoDB installation root directory

Enter the command prompt to start MongoDB:mongod.exe--dbpath d:\mongodb\data\db ("d:\mongodb\data\db" Data directory created under the installation root of MongoDB)

If the success will be as shown

If you feel the trouble, write a script file for quick Start

The file contents are as follows

Double-click to Mongodb.bat script file after saving to quickly start MongoDB

Fifth Step:

Setting Windows environment variables

Turn on PC Properties Select Advanced System Settings

Select the environment variable and locate the path option in the system variable

Click Edit to paste your MongoDB installation root in the variable value of the popup box

You can start MongoDB from anywhere in the command prompt after saving

Windows Platform Installation MongoDB

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.