3/17/2024 0 Comments Download mongodb ubuntuTo start/run, stop, or restart mongod server check below cmds We need to hold/pin, mongoDb from getting unintended upgrade version of mongodb-org, so below 6 cmd will hold, apt-get upgrade to update mongo database version. echo "mongodb-org hold" | sudo dpkg -set-selectionsĮcho "mongodb-org-database hold" | sudo dpkg -set-selectionsĮcho "mongodb-org-server hold" | sudo dpkg -set-selectionsĮcho "mongodb-org-shell hold" | sudo dpkg -set-selectionsĮcho "mongodb-org-mongos hold" | sudo dpkg -set-selectionsĮcho "mongodb-org-tools hold" | sudo dpkg -set-selections Sudo apt-get install -y mongodb-org=5.0.5 mongodb-org-database=5.0.5 mongodb-org-server=5.0.5 mongodb-org-shell=5.0.5 mongodb-org-mongos=5.0.5 mongodb-org-tools=5.0.5Īfter successfuly installation, run below 6 echo cmds. Now, finally we can install MongoDB on Ubuntu server, run below command. Run below cmd to reload all the local package database. echo "deb focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt//mongodb-org-5.0.list retry importing GPG key wget -qO - | sudo apt-key add -Ĭreate a file which will hae mongodb org list version for your ubuntu. Install gnupg sudo apt-get install gnupgĢ. ![]() ![]() If you get error, saying gnupg not install, then install it and retry above cmd.ġ. To Install mongoDB we need to first download/import GPG key, in WinSCP putty terminal run below command wget -qO - | sudo apt-key add. Here is where you need to run cmds to install mongoDB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |