Pages

Monday, July 28, 2014

How to install MongoDB in Linux(Fedora 20)?

As i find many students were confused about the installation steps of mongoDB in Linux (Fedora 20)

  1. Download the tar file from Here!
  2. Login as root and open terminal
  3. Extract the using commond "tar xvzf filename.tgz"
  4. Create a directory in mongodb\bin folder as data\db using commond "mkdir data\db"
  5. Now go to Bin directory and run mongod with setting the path as "./mongod --dbpath data\db" 
  6. open another terminal goto Bin folder and run "./mongo"
  7. If any error occur please refer the screenshots
  8. Enjoy...!!!


Extract the tgz and create data\db in BIN folder

 


run Mongod with setting path

Run mongo

 



 

 

3 comments:

  1. thank you very much for very clean explanation

    ReplyDelete
  2. You are welcome. Keep visiting the blog.

    ReplyDelete
  3. Excellent blogs!!!!you have for sharing them effect information..we developer very learning to easy

    MongoDB Training Centers in Chenai

    ReplyDelete