Graphic tutorial on installing mongodb in windows

Source: Internet
Author: User
Tags mongodb windows

Preparations:

Download the right version of http://www.mongodb.org/downloads to official

Here we use mongodb windows 32bit

Decompress mongodb to the d: \ mongodb \ directory, and create a new directory db (for storing data) and a directory logs (for storing logs) in the mongodb directory ), these files should be included in the mongodb directory ,:

Create a new mongodb. log file in the D: \ mongodb \ logs \ directory to record the Installation log. You are ready to start installation ~

Installation steps:

1. Start-run-cmd

2. cd D: \ mongodb \ bin \

3. D: \ mongodb \ bin> mongod-logpath D: \ mongodb \ logs \ mongodb. log-logappend-dbpath D: \ mongodb \ db-directoryperdb-serviceName MongoDB-install

:

If the installation is successful, the following text is displayed:

All output going to: D: \ mongodb \ logs \ MongoDB. log

Creating service MongoDB.

Service creation successful.

Service can be started from the command line via 'net start "MongoDB "'.

After the installation is successful, go to the windows Service and find the mongodb service to enable or execute the command net start MongoDB in cmd, so that the mongodb service starts. The default port of mongodb is 27017.

After the service is started, you can run a few simple commands to test it:

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.