$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

MongoDB Installation in Ubuntu 23.04 – Step-by-step

October 25, 2023 | By the+gnu+linux+evangelist.

Installing

  1. 2. Setting Up MongoDB Repo

    SetUp Apt Repo for Latest MongoDB Installation

    Here MongoDB Apt Repository Setup Guide
    Link to Add MongoDB Apt Repo on Ubuntu Linux
  2. 3. Making Directory

    Then to Make Needed Directory
    Run:

    Copy
    sudo mkdir -p /data/db

    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    Then Set the Right Permissions:

    Copy
    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 on Ubuntu
    Simply play:

    Copy
    sudo apt install mongodb-org

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

    Here MongoDB Installation Troubleshootings
    MongoDB Database Ubuntu Installation Troubleshooting for unknown initscript, /etc/init.d/mongodb not found

Contents