Answered by : hiren-reshamwala
sudo systemctl restart mongod
Source : | Last Update : Wed, 17 Feb 21
Answered by : ashwani
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Source : | Last Update : Tue, 25 Aug 20
Answered by : condemned-chimpanzee-jfz7rb8trwpt
sudo systemctl status mongod
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | Last Update : Fri, 21 May 21
Answered by : condemned-chimpanzee-jfz7rb8trwpt
sudo systemctl enable mongod
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | Last Update : Fri, 21 May 21
Answered by : lesego
sudo apt update
# Import the public key used by the package management system
# The operation should respond with an OK.
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
# Create a list file for MOngoDB
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
# Reload localpackage database
sudo apt update
#Install MongoDB packages
sudo apt install -y mongodb-org
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-community-ubuntu-pkg | Last Update : Wed, 15 Jul 20
Answered by : adorable-alpaca-zyws2rmmt7y0
FOR WSL2
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
sudo apt-get install gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo nano /etc/init.d/mongod
paste this content in the file 'https://raw.githubusercontent.com/mongodb/mongo/master/debian/init.d'
#give permissions
sudo chmod +x /etc/init.d/mongod
#start the service
sudo service mongod start
Source : https://stackoverflow.com/questions/62495999/installing-mongodb-in-wsl | Last Update : Sun, 09 May 21
Answered by : condemned-chimpanzee-jfz7rb8trwpt
sudo systemctl start mongod
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | Last Update : Fri, 21 May 21
Answered by : condemned-chimpanzee-jfz7rb8trwpt
sudo systemctl stop mongod
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | Last Update : Fri, 21 May 21
Answered by : jolly-jay-y605nwexz76c
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -sudo add-apt-repository 'deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse'CopyCopy
Source : https://linuxize.com/post/how-to-install-mongodb-on-ubuntu-20-04/ | Last Update : Sun, 23 May 21
Answered by : condemned-chimpanzee-jfz7rb8trwpt
mongo
Source : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | Last Update : Fri, 21 May 21