MongoDB Learning Note 1 installs MongoDB based on CentOS 6.5

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

1. Add a MongoDB installation source

Vim/etc/yum.repos.d/mongodb-enterprise.repo

Write the following configuration entries to the file

[Mongodb-enterprise]name=mongodb Enterprise repositorybaseurl=https://repo.mongodb.com/yum/redhat/$releasever/ mongodb-enterprise/stable/$basearch/gpgcheck=0enabled=1

2. Installing MongoDB with Yum
Yum Install Mongodb-enterprise

3. Set up MongoDB process boot

Chkconfig Mongod on

More information about:

1. Install Mongodb-enterprise, the following packages will be installed

Mongodb-enterprise-server, including Mongod processes, configuration files and initialization scripts;

Mongodb-enterprise-mongos, including the MONGOs process;

Mongodb-enterprise-shell, including the MONGO shell process;

Mongodb-enterprise-tools, including mongoimport bsondump, mongodump,mongoexport, Mongofiles, mongoimport, mongooplog, mongoperf, mongorestore, Mongostat, and mongotop tools;

2.yun MongoDB Post configuration file is/etc/mongodb, initialization script is/etc/rc.d/init.d/mongod;

3. Install other versions of MongoDB, such as install 2.6.1 version

Yum Install mongodb-enterprise-2.6.1

This article is from the "Margin with Wish" blog, please be sure to keep this source http://281816327.blog.51cto.com/907015/1598270

MongoDB Learning Note 1 installs MongoDB based on CentOS 6.5

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.