Java from entry to entry-database Mongo DB installation start and configuration details, from entry to entry-level mongo

Source: Internet
Author: User

Java from entry to entry-database Mongo DB installation start and configuration details, from entry to entry-level mongo

I. Overview
After Mongo DB is downloaded, how should we install and start and configure Mongo DB? This blog will introduce how to install and start Mongo DB and how to configure it.
Ii. Installation
1. Download Mongo DB


Click the above link to download Mongo DB

2. Decompress Mongo DB

3. Configure Environment Variables

4. Check whether Mongo DB is successfully installed.

Cmd mongo-version

Iii. startup and configuration details

Three files are required to start Mongo DB.

MongodbService. bat Server

MongodbClient. bat Client

Mongodb. conf configuration

The following describes how to configure each file.

MongodbService. bat

Mongod.exe -- config mongodb. conf

-- Config: # specify the file path for the startup Item

MongodbClient. bat

// Your server address and port number

Mongo 27017/admin

Mongodb. conf

DbPath = D: \ software \ MongoDBDATA # Database address #

Port = 27017 # specify the port number of the server listener. The default value is 27017.

Fork = true # Start mongoDB using daemon

Logpath = D: \ MongoDBLog # Log Path

Auth = true | false # use Security Authentication

Bind_ip = # IP address of the current server

Slave = true | false # determine whether you are a slave server

Master = true | false # confirm that I am the master server

ReplSet = child/ 2222 # Set companion

Finally, you can open the server and then open the client. You can use MongoDB, as shown in figure

Iv. Summary.

This blog only describes a simple method of installing and starting MongoDB, and a method of installing services.

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: 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.