MongoDB How-to Getting-Started for Linux CentOS 7.x i686/x86_64 Step-by-Step Easy Guide

December 13, 2014 | By thelinuxevangelist | Filed in: Tutorial.

Quick-Start with MongoDB on CentOS 7 Linux

The Linux Tutorial Shows You Step-by-Step How-to Install and Quick Start on the MongoDB NoSQL Database for Linux CentOS 7 KDE/Gnome 32/64-bit Desktop/Server.

Finally the post’s Content is Expressly Reduced to Give Focus to the Essentials Instructions and Commands.

Installing MongoDB for CentOS 7 - Featured
  1. Open a Command Line Session
    (Press “Enter” to Execute Commands)

    Fedora Linux 14-18 Kde4 Open Terminal
  2. SetUp Yum Repo for Latest MongoDB Installation:

    MongoDB Yum Repo Setup
  3. Making Needed /data/db Directory

    sudo mkdir -p /data/db
    sudo chmod g+w /data/db

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

  4. Installing the MongoDB Database for CentOS

    yum install mongo-10gen mongo-10gen-server
  5. Starting the MongoDB Server

    service mongod start

    To Enable Start at Boot:

    chkconfig mongod on

    To Stop MongoDB Server:

    service mongod stop

    To Restart MongoDB Server:

    service mongod restart
  6. MongoDB Quick Start:

    MongoDB First Steps

Tags: , , , , , , , , , , , , , ,