MongoDB Linux Environment installation and configuration [go]

Source: Internet
Author: User
Tags install mongodb mongodb version yum install mongodb mongo shell

Installing MongoDB 2.6 tutorial with Yum in CentOS 6.5 system

In the CentOS 6.5 system, using Yum to install the MongoDB 2.6 tutorial, this article has a total of 5 steps to complete the MongoDB installation. Below we install the latest MongoDB 2.6.0 version on the CentOS 6.5 x64 system.

The previous MongoDB v2.4.x version of the software warehouse has two packages:


1) mongo-10gen-server
This package contains the latest version of the Mongod and MONGOs daemons as well as related configuration and initialization scripts.


2) Mongo-10gen
This package contains the latest version of all MongoDB tools. These tools are handy for managing your MongoDB system.

But in the MongoDB v2.6.0 version of the software warehouse a total of five packages:

1) mongodb-org
This package is a metadata package that can be implemented to automatically install the following 4 component packages.

2) Mongodb-org-server
This package contains the Mongod daemon, along with the associated configuration and initialization scripts.

3) Mongodb-org-mongos
There is a MONGOs daemon in this package.

4) Mongodb-org-shell
This package has a MONGO shell environment.

5) Mongodb-org-tools
This package contains the following MongoDB tools: Mongoimport, Bsondump, Mongodump, Mongoexport, Mongofiles, Mongoimport, Mongooplog, Mongoperf, Mongorestore, Mongostat and Mongotop.

Control script: The mongodb-org package contains a variety of control scripts, including initialization scripts/etc/rc.d/init.d/mongod using/etc/mongod.conf configuration files to configure MongoDB.

The MongoDB 2.6.0 version no longer has a MONGOs control script. The MONGOs process is used only for sharding scenarios. You can use the Mongod init script to drive the MONGOs control script.

To install the latest 64-bit MongoDB version 2.6.0, follow these steps:

1. Create a Mongodb.repo file

Create the file Mongodb.repo in the/etc/yum.repos.d/directory, which contains the configuration information for the MongoDB repository, as follows:

Vi/etc/yum.repos.d/mongodb.repo
[Mongodb]name=MongoDB repositorybaseurl=http://downloads-distro.mongodb.org/repo/ redhat/os/x86_64/gpgcheck=0Enabled=1

2. Execute the installation command

$ sudo yum install mongodb-org



MongoDB Linux Environment installation and configuration [go]

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.