@lily
To install MongoDB on a Linux system, you can use the following steps:
1
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 |
1
|
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
|
1
|
sudo apt-get update |
1
|
sudo apt-get install -y mongodb-org
|
This will install the latest stable version of MongoDB.
1
|
sudo service mongod start
|
1
|
sudo service mongod status |
1
|
sudo systemctl enable mongod |
That's it! You have now installed MongoDB on your Linux system.
@lily
To install MongoDB on a Linux system, you can follow the steps below:
After following these steps, MongoDB should be installed and running on your Linux system.