MongoDB is an open-source database, here do not need me to say, below the Ubuntu installation of MongoDB may encounter problems and solutions.
Story background:
today m$ Promotion, 1¥windows Azure 4000¥-30 Day's package, have to say is simply cabbage price! So I bought a play. The cloud ran an Ubuntu virtual machine. Later found that the installation of MongoDB is a bit laborious, Sudu apt-get install mongodb-gen10 always prompt to find the download list. The solution was eventually found, such as the following:
1. Execute command: sudo apt-key adv--keyserver keyserver.ubuntu.com--recv 7F0CEB10
2, execute the command: vi/etc/apt/sources.list.d/10gen.list (note that this command may require Sudu permissions.) Suppose you need to add sudo to the front of VI, notice the space between Sudu and VI)
3. Insert the following command to 10gen.list:
Deb Http://downloads-distro.mongodb.org/repo/ubuntu-upstart Dist 10gen
4. Save and Exit VI
5. Execute command: sudo apt-get update
6. Execute command: sudo apt-get install Mongodb-10gen
7, wait for the installation, after that will be OK!
Additional actions:
8. Execute Command vi/etc/mongodb.conf ( Note that this command may require Sudu permission )
9, can according to their own preferences. Set DBPath and LogPath (each is a data file path and a log file path)
10. Save and exit
11, sudo service MongoDB Start/stop/restart respectively to start/stop/restart MongoDB
Install MongoDB under Ubuntu