Install MongoDB Centos 7

Install MongoDB Centos 7###

Disable selinux

# setenforce 0
# sed -i 's/SELINUX\=permissive/SELINUX=disabled/' /etc/selinux/config
# reboot
# sestatus
SELinux status:                 disabled

Configure Repo

cat > /etc/yum.repos.d/mongodb-org-3.6.repo << EOF
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
EOF

Install MONGODB

yum install -y mongodb-org

Enable At Start up and Start Service

systemctl enable mongod && systemctl start mongod