How To installation and configuration mongodb in centos 8.5

 How To installation and configuration mongodb in centos 8.5

Step.1. First We need to add repo 

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

[mongodb-org-7.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/7.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://pgp.mongodb.com/server-7.0.asc


step.2. Run given below command:-
 yum install -y mongodb-org

step.3.Install selinux policey
 yum install git make checkpolicy policycoreutils selinux-policy-devel


step.4 Finally we have install mongodb successfully and going to restart mongodb service and also enable service.


step.5.Finally login to mongodb using below command:-

[root@MYSQL-IDC-03 ~]# mongosh



Comments

Popular posts from this blog

MySQL Point in Time Recovery: How To Configure And How Does it Work?

MySQL Replication Switchover: Step-by-Step Guide

Mysql Commercial Mysqlbackup:How to take Differential or Incremental Backup and resotre using mysqlbackup utility in mysql 8.0.37 enterprise edition