How to Install MongoDB for RedHat Linux 8.x Step-by-Step Easy Guide

September 16, 2019 | By thelinuxevangelist | Filed in: Tutorial.

Installing

  1. 2. Setting Up Repository

    SetUp Yum Repo for Latest MongoDB Installation

    MongoDB Yum Repo Setup
  2. 3. Making Directory

    Then to Make Needed Directory
    Run:

    sudo mkdir -p /data/db

    If Got “User is Not in Sudoers file” then Look: Solution
    Then Set the Right Permissions:

    sudo chmod g+w /data/db

    The User Running the MongoDB Server need Write Permission on /data/db!

  3. 4. Installing

    Then to Install the MongoDB Database for CentOS
    Simply Run:

    yum install mongo-10gen mongo-10gen-server

Contents


Tags: , , , , , , , , ,