Java from getting started to mastering--database article MONGO DB installation Start-up and configuration detailed

Source: Internet
Author: User

I. Overview
Mongo db After download down how we should install boot and configuration to use Mongo db, this blog will tell you about Mongo DB installation start-up and configuration detailed.
Second, installation
1. Download MONGO DB

Http://www.mongodb.org/downloads

Click on the link above to download MONGO DB

2, decompression MONGO DB


3. Configure Environment variables


4. Check if MONGO DB installation is successful

CMD mongo-version


Iii. start-Up and configuration detailed

Three files required to start MONGO DB

mongodbservice.bat server

mongodbclient.bat client

mongodb.conf configuration

below to explain how each file is configured

mongodbservice.bat

Mongod.exe--config mongodb.conf

--config: #指定启动项用文件的路径

Mongodbclient.bat

Address and port number of your server

MONGO 127.0.0.1:27017/admin

Mongodb.conf

dbpath=d:\software\mongodbdata# Database Address #

port=27017# Specifies the port number that the server listens on, default is 27017

fork=true# start MongoDB in a daemon way

logpath=d:\mongodblog# Log Path

auth=true|false# Safety Authentication Method

Bind_ip =127.0.0.1# The IP of this server

slave=true|false# determine that you are from the server

Master=true|false #确定我是主服务器

replset= child/127.0.0.1:2222 #设定同伴

Finally, we open the server and then open the client, you can use MongoDB as


Iv. Summary.

This blog is just about a simple installation, the way to start MongoDB and a way to install the service is not explained here.

Java from getting started to mastering--database article MONGO DB installation Start-up and configuration detailed

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.