In layman's MongoDB (iii) mongodb download and install

Source: Internet
Author: User
Tags mongodb download


software Download

Download MongoDB the latest package: http://www.mongodb.org/downloads

Download mongodb visualization interface,mongovue:/http download.csdn.net/detail/lovesummerforever/8036417

Software Installation

MongoDB the server-side installation steps are as follows

1, to abide by the MongoDB specification, choose their own disk creation folder, here I choose the D Drive, Create the following directory structure

D:\mongodb as the root directory for installation

D:\mongodb\data Data Catalog

D:\mongodb\data\db Database directory

D:\mongodb\data\log database log directory

2. Unzip the latest zipped package of thedownloaded mongodb , copy the bin folder to MongoDB folder.


3,mongo.exe is the shell client, and mongod is the database itself, Can be run under a DOS window.


For Ease of operation, we can configure the MongoDB 's path path so that you don't have to go to MongoDB 's in the bin directory


4 , start the process

Disposable Boot MongoDB service.

need to be dos window to run, < C:\users\zhengqi-hf>mongod--dbpath=d:\mongodb\data\db


Integration of MONGODB services into Windows

and relational databases MySQL like, MySQL need to start MySQL Services, while MongoDB need to start MongoDB database service. However, once the DOS boot mongodb window is closed, the service will be stopped, so every time it is necessary to start, it is a very laborious thing, we can put MongoDB services are integrated into Windows of the service. Let mongodb service start up with the boot. The commands are as follows:

To create a service:

D:\mongodb\bin\mongod.exe--dbpathd:mongodb\data\db--logpath D:\mongodb\data\log\mongodb.log-- Install--servicename MongoDB

start mongodb Service:
NET START MongoDB

To delete a service:

D:\mongodb\bin\mongod.exe--dbpath d:mongodb\data\db--logpath D:\mongodb\data\log\mongodb.log-- Remove--servicename MongoDB

Close MongoDB Service:

Netstop MongoDB


we'll be in Windows service to see what we have added MongoDB Service:




the next article is mainly about MongoDB Set User access rights

In layman's MongoDB (iii) mongodb download and install

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.