Step-by-step – MongoDB Installation in Debian Bullseye

January 20, 2020 | By the+gnu+linux+evangelist.

Installing

  1. 3. Making Directory

    Then to Make Needed Directory
    Run:

    sudo mkdir -p /data/db

    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!

  2. 4. Installing

    Installing the MongoDB Database for Debian

    sudo apt install mongodb-org

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

  3. 5. Launching MongoDB

    Starting MongoDB Server
    Simply with:

    sudo mongod

  4. 6. Getting Started

    MongoDB Database Getting-Started Guide

    MongoDB First, Steps Guide

Contents


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

QuickChic Theme • Powered by WordPress