MongoDB is an open-source database. I don't need to talk about it here. Let's talk about the problems and solutions that may occur when installing MongoDB In Ubuntu. Background: Today's M $ sales promotion, 1 $ WindowsAzure4000 $-30-day package, I have to say it is simply a cabbage price! So I bought a play, the cloud ran a Ubuntu virtual machine, and later found that the installation of Mongodb when some effort, suduapt-getinstallmongodb-gen10
MongoDB is an open-source database. I don't need to talk about it here. Let's talk about the problems and solutions that may occur when installing MongoDB In Ubuntu.
Background:
Today's M $ sales promotion, 1 $ Windows Azure 4000 $-30 days package, I have to say it is simply a cabbage price! So I bought a play, the cloud ran a Ubuntu virtual machine, and later found that the installation of Mongodb when some effort, sudu apt-get install mongodb-gen10 is always prompted to not find the download list, finally, the solution was found as follows:
1. Run the following command: sudo apt-key adv -- keyserver keyserver.ubuntu.com -- recv 7F0CEB10.
2. Run the command: vi/etc/apt/sources. list. d/10gen. list (note that this command may require sudu permission. If you need sudo before vi, note 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. Run the command: sudo apt-get update
6. Run the command: sudo apt-get install mongodb-10gen
7. Wait for the installation, and then it will be OK!
Additional operations:
8. Run the command vi/etc/mongodb. conf (note that this command may require sudu permissions)
9. You can set dbpath and logpath (data file path and log file path respectively) according to your preferences)
10. Save and exit
11. sudo service mongodb start/stop/restart correspond to start/stop/restart Mongodb respectively.
CentOS compiling and installing MongoDB http://www.linuxidc.com/Linux/2012-02/53834.htm
CentOS compilation and installation of php extension http://www.linuxidc.com/Linux/2012-02/53833.htm for MongoDB and mongoDB
CentOS 6 install MongoDB with yum and configure http://www.linuxidc.com/Linux/2012-08/68196.htm on the server side
Install MongoDB2.4.3 http://www.linuxidc.com/Linux/2013-05/84227.htm in Ubuntu 13.04
MongoDB entry must read (both concepts and practices) http://www.linuxidc.com/Linux/2013-07/87105.htm
MongoDB authoritative Guide (The Definitive Guide) English version [PDF] http://www.linuxidc.com/Linux/2012-07/66735.htm
MongoDB details: Click here
MongoDB: Click here
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-08/105629.htm