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

How to Install MongoDB on Gentoo Gnu/Linux

August 6, 2019 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading

    Downloadng MongoDB Legacy for GNU/Linux

    MongoDB tar.gz Linux 64-bit

    Grab the Linux Legacy 64-bit Release.

  2. 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!

  3. 4. Installing

    Installing the MongoDB Database for Gentoo Linux
    So first, Extract the Archive into Target directory with:

    sudo tar xvzf ~/Downloads/mongodb-linux*.tar.gz -C /opt/

    (But if you are in Trouble to Find the Location on Terminal then See: How to Access Downloads Folder from Browser.)
    Now for ease Rename the folder as:

    sudo mv /opt/mongodb* /opt/mongodb

    Again Set the SuperUser as Owner:

    sudo chown -R root:root /opt/mongodb

    Finally, amend the User’s Path:

    echo 'export PATH=$PATH:/opt/mongodb/bin' >> ~/.bashrc

    To Reload it simply run:

    bash

Contents