Installing MongoDB in CentOS

Source: Internet
Author: User

Oneself in a CentOS6.6 system in accordance with the official website instructions, go through the installation process, record.

See a MONGO video, the installation described above is installed with the source code, and the official network said the need to gcc4.8.3 version, there are scons compiling tools, these environments set a good estimate of the past half a day. So let's install it through the Yum method.

The installation steps are as follows:

1. In the/etc/yum.repos.d/directory, add a Mongodb-org-3.0.repo file with the following contents:

[Mongodb-org-3.0]name=mongodb repositorybaseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0 /x86_64/gpgcheck=0enabled=1

2. Implementation

Yum Install-y mongodb-org

command, will install Server,shell,tools etc 4 Packs

3. Disable SELinux

It's easy to start the MONGO service with service Mongod start.

Installing MongoDB in CentOS

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.