MongoDB Windows environment Installation and configuration

Source: Internet
Author: User
Tags create mongodb mongodb windows

1. First download the appropriate installation package to the official website (http://www.mongodb.org/downloads)

Select the appropriate version to download according to your system.

2. According to the prompt to install, I installed in the C drive (I installed to the non-system disk, do not know what reason can not start), I installed in C:\Program Files\mongodb

3. Create the database directory and log directory (required).

4. Open the Command Line window (CMD), switch to C:\Program files\mongodb\server\3.0\bin, specify the database storage path, the command is as follows:

>>CD C:\Program Files\mongodb\server\3.0\bin

>>mongod--dbpath D:\MongoDB\data

The last line appears as

for27017

Access by browserhttp://localhost:27017/,shown below:

Indicates successful installation

5. Installing MongoDB as a Windows service

The command is as follows:

>>SC Create MongoDB binpath= "C:\Program files\mongodb\server\3.0\bin\mongod.exe--service--dbpath D:\MongoDB\ Data--logpath=d:\mongodb\logs\mongodb.log--logappend "

>>net Start MongoDB

Well, it's already installed here, but we can set the service to start automatically so that we don't have to enter net start MongoDB every time we start

Mouse Mobile Road "Computer" right-click Management

Find the appropriate service set to start automatically.

OK, here's our tool to connect MongoDB, I'm using Mongovue 1.6.9

As configured, you can connect the MongoDB that we installed on this machine

MongoDB Windows environment Installation and configuration

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.