MongoDB Guide

Installation on Ubuntu:

Command:$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.rgXoWqx8HB --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: key 7F0CEB10: "Richard Kreuter <richard@10gen.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Command:$ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
Output:deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
Command: $ sudo apt-get update
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://downloads-distro.mongodb.org dist Release.gpg
Get:2 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise Release
Hit http://downloads-distro.mongodb.org dist Release
Get:4 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:5 http://security.ubuntu.com precise-security/main i386 Packages [399 kB]
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://downloads-distro.mongodb.org dist/10gen i386 Packages
Hit http://archive.ubuntu.com precise/universe Translation-en
Get:6 http://archive.ubuntu.com precise-updates/main i386 Packages [783 kB]
Ign http://downloads-distro.mongodb.org dist/10gen TranslationIndex
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Get:7 http://archive.ubuntu.com precise-updates/universe i386 Packages [243 kB]
Hit http://ppa.launchpad.net precise Release
Ign http://downloads-distro.mongodb.org dist/10gen Translation-en_US
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Ign http://downloads-distro.mongodb.org dist/10gen Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Fetched 1,524 kB in 1s (1,107 kB/s)
Reading package lists... Done

Install Packages

Command: $sudo apt-get install mongodb-10gen

Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb-10gen is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.

Installation complete! Let's continue with configuration...