below we install the latest MongoDB 2.6.5 version on the CentOS 6.5 x64 system.
in MongoDB v 2.6.5 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
Use the/etc/mongod.conf configuration file to configure MongoDB.
the MongoDB 2.6.5 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.5 , 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:
[Mongodb]name=mongodb repositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/gpgcheck=0enabled=1
Note the error:
Operation too slow. Less than 1 bytes/sec transfered the last of seconds '
Data sources in the domestic access speed is too slow, you can refer to the following data sources:
http://mongo.a.mesa.io/repo/redhat/os/x86_64/
http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
Http://repo.mongodb.org/repo/redhat/os/x86_64
2. Execute the installation command
$ sudo yum install mongodb-org
3. Configuring the SELinux firewall
turn on port 27017
4. Start MongoDB
$ sudo service mongod start
5. Verifying MongoDB
you can determine whether the Mongod process is working correctly by examining the contents of the log file/var/log/mongodb/mongod.log.
You can also execute commands:
$ sudo chkconfig mongod on
to stop MongoDB, execute:
$ sudo service mongod stop
to restart MongoDB, execute:
$ sudo service mongod restart
CentOS 6.5 Installation MongoDB 2.6 (multi-yum data source)