DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

sium_hossain
sium_hossain

Posted on

Install MongoDB Community Edition on Ubuntu 22.04 lts/pop os

Ubuntu 22.04 doesn't have official MongoDB packages yet, But 20.04 has

  • Download libssl1.1_1.1.1f-1ubuntu2_amd64.deb from official repository:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
Enter fullscreen mode Exit fullscreen mode
  • install it
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
Enter fullscreen mode Exit fullscreen mode
  • Finally
sudo apt install -y mongodb-org
Enter fullscreen mode Exit fullscreen mode

Start MongoDB community edition

$ sudo systemctl start mongod
$ sudo systemctl daemon-reload
$ sudo systemctl status mongod
Enter fullscreen mode Exit fullscreen mode

Mongodb status checking

  • Stop MongoDB by-
sudo systemctl stop mongod
Enter fullscreen mode Exit fullscreen mode

🀘 Thank you

Check my others blog -

Top comments (1)

Collapse
 
depaula profile image
dePaula

Thank you for your article! I couldn't install it from the official website and you got it done.

Tired of sifting through your feed?

You can change your feed and see more relevant posts by adding a rating to different tags on DEV. Head here to adjust your weights.