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]