14

I am trying to figure out what to install on my Ubuntu 12.04 server. I've read on multiple blogsites on how to install mongodb and it states there that you can install it through mongodb-10gen. On the other hand, the documentation on the mongodb site says that you should install it through mongodb-org. So which is which, and what is the difference between the two? I've tried installing through mongodb-10gen and tried starting mongodb. The response said that it started but when I tried accessing mongodb it won't acess. I've tried checking the status and the response was it was not running.

mateeyow
  • 1,306
  • 1
  • 17
  • 38
  • 6
    The current and **recommended** method is documented on the MongoDB site: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. The 10gen distributions are an old tag and should no longer be used for new installations. – Neil Lunn Apr 10 '14 at 02:29
  • @NeilLunn Okay, i'll try installing it as instructed by the documentation. – mateeyow Apr 10 '14 at 02:38
  • Fire following commands on your terminal. It works sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev sudo apt-get purge mongodb-10gen sudo apt-get autoremove sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 echo deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen sudo rm /var/lib/mongodb/mongod.lock sudo apt-get update sudo apt-get install mongodb-10gen mongod --repair sudo service mongodb start mongo – Mayuri Apr 10 '14 at 04:11
  • Why wasn't this question migrated? – UpTheCreek Aug 03 '15 at 08:34

0 Answers0