Window platform installation MongoDB database graphics and text detailed _mongodb

Source: Internet
Author: User
Tags mongodb

This article describes the details of the Windows Platform installation MongoDB database, as follows

Official website: www.mongodb.org
Install--> set environment variable--> start

1. Download:

Download the 32-bit or 64-bit. msi file according to the system, download and double-click the file, and then install it as prompted,

Foreign web site to open the running speed is relatively slow. Now give a domestic download address. Http://www.jb51.net/softs/41751.html

2, set up the installation directory:

By clicking on the custom button to set up your installation directory, I will install it in the D:\MongoDB


3, set up MongoDB directory:

Create a new log (for log) and data (for D:\MongoDB) folders inside the

Create a new Mongodb.log file inside D:\MongoDB\log

4. Configure Environment variables

Add the Bin directory to the environment variable; D:\mongoDB\bin

Variable added successfully:

5, start the database:

Mongod--dbpath D:\MongoDB\data

The last line of information prompts the listener port to be 27017:

2016-07-01t21:41:22.951+0800 I Network [Initandlisten] waiting for connections on
Port 27017

Browser access: http://localhost:27017/Hint:

Create a new command Window enter: MONGO
At this point we are connected to the test database, press CTRL + C to exit

This indicates that the MONGODB has been installed and can be connected, but is it silly to be like this every time?

6. Configure the MONGO service side

Command Line Input:

Mongod--dbpath D:\MongoDB\data--logpath=d:\mongodb\log\mongodb.log--install

Parsing: Mongod--dbpath command is the location where the database file is created--logpath represents the path where the log file is stored

Open MongoDB later, only need MONGO to connect to the database

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.