怎样在Ubuntu 11.10上安装MongoDB2.0

10gen publishes MongoDB packages, here is how to install one.


Add the 10gen repo to your source list.


 $ sudo gedit /etc/apt/sources.list
/etc/apt/sources.list


 ...
    deb http://extras.ubuntu.com/ubuntu oneiric main
    deb-src http://extras.ubuntu.com/ubuntu oneiric main


    deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
Add the GPG key


 $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
Update your packakes list.


 $ sudo apt-get update
Install the MongoDB package.


 $ sudo apt-get install mongodb-10gen
Check that it is working by entering:


 $ mongo
You should now see this:


 MongoDB shell version: 2.0.2
    connecting to: test
    > 

你可能感兴趣的:(mongodb)