It’s an open-source database tool.

Step1. Create a repo file

vi /etc/yum.repos.d/mongodb-org.repo

[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc

Step:2. Install MongoDB

yum install mongodb-org -y

Step3. Start and enable MongoDB

systemctl start mongod
systemctl enable mongod

Step4. Verifying MongoDB

mongo

Step5. Check version

db.version()

Step6. Exit from database

exit

LEAVE A REPLY

Please enter your comment!
Please enter your name here