We're here to assist with any of your needs, don't hestitate to reach out.
Here is a step-by-step guide to install MongoDB on CentOS 8:
mongodb-org-4.4.repo
in the /etc/yum.repos.d/
directory. You can use a text editor like nano or vi to create the file:
sudo vi /etc/yum.repos.d/mongodb-org-4.4.repo
Then, add the following content to the file:
[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
sudo dnf update
sudo dnf install -y mongodb-org
sudo systemctl start mongod
sudo systemctl enable mongod
That's it! MongoDB should now be installed and running on your CentOS 8 system. You can verify the installation by running the following command:
mongo --version
Enjoy using MongoDB on your CentOS 8 server!
What our customers say about us
Create your free account today.