January 18, 2013

Installing MongoDB in Ubuntu

This morning I was deploying MongoDB in a few machines under Virtual Box, and had to look for the same commands a few times. Just as another note to myself, I wil have them here.

Add the key to the repository:

  • sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10

Edit the sources to include Mongo:

  • sudo gedit /etc/apt/sources.list.d/10gen.list

and add the following line:

And then get it installed:

  • sudo apt-get update
  • sudo apt-get install mongodb-10gen