Skip to content

How to install and start MongoDB on Debian? #383

Answered by Androz2091
Androz2091 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a tutorial 🔧

Installation

  • wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
  • echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
  • sudo apt-get update
  • sudo apt-get install -y mongodb-org

Start/Stop/Status

  • sudo systemctl start mongod
  • sudo systemctl stop mongod
  • sudo systemctl status mongod

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Androz2091
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant