Install MongoDB Community Edition 4.0 on Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. amruta says:

    while loading the packeges.,m getting the error 256…what it is..? plz give me solution for this

  2. srinu chilukuri says:

    i’m following your article to install mongo db in centos 6.2 installation completed ,
    but when iam start or restart mongodb using following commands:

    /etc/init.d/mongod start (or) sudo service mongod start
    /etc/init.d/mongod restart (or)sudo service mongod restart

    it will not start or restart getting error :”Starting mongod: [FAILED]”,

  3. Vinod says:


    Thanks for the excellent article. One small correction in the following command
    chkconfig –levels 235 mongod
    It should be
    chkconfig –levels 235 mongod on
    Otherwise it will throw warnings.

  4. Anshul Sisodia says:

    Sometimes this happens because packages were not downloaded properly or are corrupted on the website link. Also, check the repo file you created, it might be sometimes the problem of your http server.

  5. TJ says:


    I have followed the instructions, but I am still getting package not available? I am running CentOS 6.3. Any ideas why? I have tried yum update -y and clean up.


Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.