CentOS 6.5 Installation MongoDB 2.6 (multi-yum data source)

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

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)

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.