How to Install MongoDB 4.2 on CentOS 8 RHEL 8



How to Install MongoDB 4.2 on CentOS 8 RHEL 8

How to Install MongoDB 4.2 on CentOS 8 RHEL 8

How to Install MongoDB 4.2 on CentOS 8 RHEL 8
vi /etc/yum.repos.d/mongodb-org-4.2.repo
[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc
yum update
yum search mongodb-org
yum install mongodb-org
systemctl enable mongod
systemctl start mongod
systemctl status mongod
mongo

Comments are closed.