Answered by : seyed-mohamad-khoshnava
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Source : | Last Update : Mon, 09 Aug 21
Answered by : jaimin-ashwinbhai-patel
sudo apt update
sudo apt install wget curl gnupg2 software-properties-common apt-transport-https ca-certificates lsb-release
curl -fsSL https://www.mongodb.org/static/pgp/server-6.0.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/mongodb-6.gpg
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i ./libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo apt update
sudo apt install mongodb-org
sudo systemctl enable --now mongod
mongod --version
Source : https://techviewleo.com/install-mongodb-on-ubuntu-linux/ | Last Update : Thu, 03 Aug 23
Answered by : clear-cow-gv1st637b4yd
# https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-get install gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
# for Ubuntu 20.04
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
# if you get "mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.1) but 1.1.0l-1~deb9u6 is to be installed" error
# https://stackoverflow.com/questions/50375979/getting-error-while-installing-mongodb-in-linux
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1\~18.04.20_amd64.deb
sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
sudo apt-get install -y mongodb-org
Source : | Last Update : Fri, 11 Nov 22
Answered by : abhishek-xqqz0qgqipjd
follow the steps from the below link
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
Source : | Last Update : Wed, 20 Jan 21
Answered by : precious-pygmy-lq34i8boab9p
sudo apt-get install gnupg
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | Last Update : Sun, 07 Feb 21
Answered by : yash-yash
{"tags":[{"tag":"textarea","content":"wget -qO - https:\/\/www.mongodb.org\/static\/pgp\/server-5.0.asc | sudo apt-key add -","code_language":"shell"}]}
Source : https://www.cherryservers.com/blog/how-to-install-and-start-using-mongodb-on-ubuntu-20-04 | Last Update : Sun, 16 Apr 23
Answered by : precious-pygmy-lq34i8boab9p
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | Last Update : Sun, 07 Feb 21
Answered by : yash-yash
{"tags":[{"tag":"textarea","content":"echo \"deb [ arch=amd64,arm64 ] https:\/\/repo.mongodb.org\/apt\/ubuntu focal\/mongodb-org\/5.0 multiverse\" | sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-5.0.list","code_language":"shell"}]}
Source : https://www.cherryservers.com/blog/how-to-install-and-start-using-mongodb-on-ubuntu-20-04 | Last Update : Sun, 16 Apr 23
Answered by : you
# Update the package list
sudo apt update
# Install MongoDB
sudo apt install mongodb
# Start MongoDB service
sudo systemctl start mongodb
# Enable MongoDB service to start on system boot
sudo systemctl enable mongodb
# Verify MongoDB installation and service status
sudo systemctl status mongodb
Source : | Last Update : Mon, 18 Sep 23