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
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.
[root@MYSQL-IDC-03 ~]# mongosh
Comments
Post a Comment