In-depth introduction to MongoDB (3) mongoDB download and Installation

Source: Internet
Author: User
Tags install mongodb mongodb download mongodb server
Download the latest mongodb package: www. mongodb. orgdownloads provides a visual interface for downloading mongodb. csdn. install the netdetaillovesummerforever8036417 software on the mongodb server as follows: 1. Follow the mongodb specifications and select your own disk creation folder,

Software download mongodb latest package: http://www.mongodb.org/downloads download mongodb visual interface, mongoVUE: http://download.csdn.net/detail/lovesummerforever/8036417 software install mongodb Server installation steps are as follows: 1. comply with mongodb specifications, choose your own disk to create a folder,

Software Download

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

Download mongodb visual interface, mongoVUE: http://download.csdn.net/detail/lovesummerforever/8036417

Software Installation

The steps for installing the mongodb server are as follows:

1. Follow the mongodb specifications and select your own disk to create a folder. Here I select disk D and create the following directory structure.

D: \ mongodb is the root directory for installation.

D: \ mongodb \ data Directory

D: \ mongodb \ data \ db database directory

D: \ mongodb \ data \ log database log directory

2. decompress the latest mongodb package and copy the bin folder to the mongodb folder.

3100000000.exe is a shell client, and mongod is performed by the database itself. It can be run in the dos window.

For ease of operation, we can configure the mongodb path, so that you do not need to go to the mongodb bin directory.

4. Start the process

Start the mongodb service at one time.

Run in dos window, Mongod -- dbpath = D: \ mongodb \ data \ db

Integrate mongodb into windows

Like relational database mysql, mysql needs to start the mysql service, while mongodb needs to start the mongodb database service. However, once the window for dos to start mongodb is closed, the service will be stopped. It is very laborious to start it every time, we can integrate the mongodb service into a windows service. Enable mongodb services with startup. The command is as follows:

Create a service:

D: \ mongodb \ bin \ mongod.exe -- dbpathD: mongodb \ data \ db -- logpath D: \ mongodb \ data \ log \ mongodb. log -- install -- serviceName MongoDB

Start the mongodb service:
Net start MongoDB

Delete service:

D: \ mongodb \ bin \ mongod.exe -- dbpath D: mongodb \ data \ db -- logpath D: \ mongodb \ data \ log \ mongodb. log -- remove -- serviceName MongoDB

Disable the mongodb service:

NETSTOP MongoDB

We will see the mongodb service we added in the windows Service:

The next article focuses on setting user access permissions for mongodb.

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.