“MongoDB Instal Ubuntu 20.04” Kode Jawaban

Mulai Layanan MongoDB Ubuntu

sudo systemctl start mongod
sudo systemctl stop mongod
Adarsh077

Instal MongoDB Ubuntu 20.04

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
imaskm

Instal Mongo Ubuntu 20.04

sudo systemctl restart mongod
Hiren Reshamwala

Instal Mongo Ubuntu 20.04

sudo systemctl status mongod
Condemned Chimpanzee

Instal Mongo Ubuntu 20.04

sudo systemctl enable mongod
Condemned Chimpanzee

MongoDB Instal Ubuntu 20.04

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
Adorable Alpaca

Jawaban yang mirip dengan “MongoDB Instal Ubuntu 20.04”

Pertanyaan yang mirip dengan “MongoDB Instal Ubuntu 20.04”

Lebih banyak jawaban terkait untuk “MongoDB Instal Ubuntu 20.04” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya