Install MongoDB 4 Pada Linux Mint 20

“Install MongoDB 4 pada Linux Mint 20”


MongoDB is a free and open source document database. It belongs to a family of databases called NoSQL, which differs from traditional table-based SQL databases such as MySQL and PostgreSQL.

In MongoDB, data is stored in flexible JSON-like documents where fields can vary from document to document. It does not require a predefined schema, and the data structure can be changed from time to time

Install MongoDB 4 pada Linux Mint 20

sudo apt update && sudo apt install gnupg
wget -qO - | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org.list
sudo apt-get update -y
sudo apt-get install mongodb-org -y
sudo systemctl start mongod
sudo systemctl enable mongod
sudo systemctl status mongod
mongo --eval 'db.runCommand({ connectionStatus: 1 })'

Mongodb Configuration

sudo nano /etc/mongod.conf

systemctl restart mongod


Sahabat Blog Learning & Doing is such an explanation of Install MongoDB 4 pada Linux Mint 20. May be useful . See you again in the next post.

(Visited 4 times, 4 visits today)

Click to share with others

Leave a Comment