Tech Junkie Blog - Real World Tutorials, Happy Coding!: MongoDB In-Depth: Installing MongoDB on Linux

Tuesday, November 2, 2021

MongoDB In-Depth: Installing MongoDB on Linux

In this post we are going to install MongoDB on a Linux operating system.

Here are the steps:

1.  Download the community edition of MongoDB from the page https://www.mongodb.com/download-center?jmp=nav#community click on the "Linux" tab is selected and select the Linux version that you want



































2. After you download the file extract the file with the tar command

tar -zxvf mongodb-linux-x86_64-rhel70-4.0.1.tgz












3. Create a new folder in the /opt/ directory call mongodb with the command mkdir /opt/mongodb

4. Copy the extracted files to the newly created folder with the command

  cp -R -n mongodb-linux-x86_64-rhel70-4.0.1/*  /opt/mongodb


5. Type mongod to verify that MongoDB has been installed




















You will noticed that MongoDB tries to start itself but shut itself down because there's no data
folder that it expects. That's easy enough to fix. All you have to do is type in the following command in the terminal mkdir /data mkdir /data/db/ Now you can type mongod to start MongoDB.

2 comments:

  1. BuyAssignment.com is a first-class academic writing company online from where you can get excellent help with assignment writing.

    ReplyDelete
  2. Fresh Fullz supplier USA/CANADA/UK

    Fullz format:
    Name|SSN|DOB|DL|Address|City|State|Zip|Phone|Email
    High Credit Scores Pros 700+ (USA Credit Bureau Database)

    Good quality CC Fullz CVV
    Fresh CVV UK|USA|CA
    DL Scan Front/Back with SSN+Selfie
    Dumps with pin codes

    -No refund, Replacement only
    -Fast delivery, 24/7 response
    -CVV replace if not valid

    Fullz CA+SIN
    Fullz USA SSN+Dob+DL+Employee History
    Fullz UK|Italy|France

    Hacking|Carding|Spamming|Scripting stuff available
    Tools,Tutorials, Loan Methods, Cash out Methods

    100% valid information & fresh Database

    --->Contact me now for good business (online 24/7)

    ***ICQ: @killhacks
    ***Telegram: @leadsupplier
    ***Whatsapp: +92 317 2721122
    ***Skype/Wicker: @peeterhacks

    ReplyDelete

Search This Blog