decorgaq.blogg.se

Install mongodb in ubuntu 12.04
Install mongodb in ubuntu 12.04












install mongodb in ubuntu 12.04

sudo service mongod stopĪfter upgrading to 3.0, you have to upgrade 2.6 MONGODB-CR Users to SCRAM-SHA-1 for Authorization changes. In that case, run the following commands. You might still find that you still have 2.6 running.

install mongodb in ubuntu 12.04

If possible create a backup image of your server.Įcho 'deb trusty/mongodb-org/3.0 multiverse' | sudo tee /etc/apt//mongodb-org-3.0.list Keep backups of your existing databases first.Please follow the steps below to proceed. Now that you have updated MongoDB version to 2.6, you have to update it to 3.0 next. Connect to the MongoDB instance and run the following command to upgrade Authorization Schema. MongoDB 2.6 has significant changes to the authorization model, which requires changes to the way that MongoDB stores users’ credentials.

install mongodb in ubuntu 12.04

  • Then install MongoDB using the following command.
  • After adding the repository details, update the packages list.
  • It will add MongoDB repository details to APTĮcho "deb dist 10gen" | sudo tee /etc/apt//mongodb.list
  • Create a List File using the following command.
  • Sudo apt-key adv -keyserver hkp://:80 -recv 7F0CEB10
  • Import MongoDB public key using the following command.
  • If possible create a backup image of your server.
  • Please keep backups of your existing databases first.
  • Before update MongoDB to 3.2, you have to update it to 2.6 first. Also, the instructions described here are applicable for standalone server only. So, this guideline might help you if you are thinking to update it to 3.2. Like me, many of you might still running the older version. MongoDB organization is releasing new updates regularly.














    Install mongodb in ubuntu 12.04