Step-by-step – MongoDB Debian Stretch Installation

March 1, 2018 | By the+gnu+linux+evangelist.

Installing

  1. 2. Setting Up MongoDB Repo

    SetUp Apt Repo for Latest MongoDB Installation

    MongoDB Apt Repository Setup Guide
  2. 3. Making Directory

    Then to Make Needed Directory
    Run:

    sudo mkdir -p /data/db

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    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 MongoDB

    Then to Install MongoDB Database for Debian

    sudo apt install mongodb-org

    If During Installation Got “unknown initscript, /etc/init.d/mongodb not found” Look

    MongoDB Installation Troubleshootings

Contents


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

QuickChic Theme • Powered by WordPress