Installing MongoDB on Amazon EC2 Linux AMI

-

Firstly configure your package

Create your package file

sudo nano /etc/yum.repos.d/mongodb.repo

Then paste in/add and save:

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

Installing the Mongodb package

sudo yum install -y mongodb-org

Your comments.