Questions
heshanheshanasked 4 months ago
I try to install mongodb in ubuntu 20 LTS. but it is not starting, Capture-3  
1

1 Answers

Accepted
user482user482answered 4 months ago
check this link https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-ubuntu/ follow these step,
sudo service mongod stop 

sudo apt purge mongo*

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=4.4.11 mongodb-org-server=4.4.11 mongodb-org-shell=4.4.11 mongodb-org-mongos=4.4.11 mongodb-org-tools=4.4.11

sudo systemctl start mongod

sudo systemctl status mongod
1