MongoDB Getting Started Installation

Source: Internet
Author: User

First, the basic information

System Environment: Linux

MongoDB Latest version download:https://codeload.github.com/mongodb/mongo/zip/r3.2.0

second, the installation process

1. Unzip the MongoDB into the MONGO folder and compile it.

CD Mongoscons All

2. After compiling, review the compiled files.

Several commonly used files are:

MONGO                         MongoDB Client file Mongod                       MongoDB service mongoimport                import mongoexport               export Mongodump                Export (binary) Mongorestore              import (binary) mongooplog                log file Mongostat                   Monitor service status

3. Create a new folder and name it Mongodb_simple

mkdir Mongodb_simple

Go to the Mongodb_simple folder and create a date log conf bin four subfolder.

CD Mongodb_simple mkdir Date mkdir Log mkdir conf mkdir Bin

Go to the Conf folder and set the MongoDB parameter mongodb.conf.

Touch Mongodb.confvim mongodb.conf
12345date= log/true

4. Copy the compiled binary files to the Bin folder.

CP .. /mongo-r3. 2.0/mongod bin/
Third, start the service

Start MongoDB Service

./bin/mongod-f conf/mongodb.conf

At this point, a simple MongoDB service is installed and the boot is complete.

MongoDB Getting Started Installation

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.