How to install mongodb on an ubuntu EC2 instance
Follow these simple steps to set up mongodb into an ec2 ubuntu instance
- Import public key
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
- Create a list file
- echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
- sudo apt-get update
- sudo apt-get install -y mongodb-org
- Start a service
- sudo service mongod star
- **In my case: Job was already running
- Connect the mongo... :)
- Stop the service ..If you want.
No comments:
Post a Comment