Wednesday, February 16, 2022

How To Install MongoDB on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install MongoDB on Rocky Linux 8.5"

MongoDB is an open source NoSQL database system written in C++ designed to ensure scalability, high performance, and availability.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname -I ; sestatus ; dnf groupinstall "Development Tools" -y
cat > /etc/yum.repos.d/mongodb.repo << 'EOL'
[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
EOL

dnf update ; dnf install mongodb-org -y
rpm -qi mongodb-org-server
mongod --version
systemctl start mongod ; systemctl enable mongod ; systemctl status mongod
firewall-cmd --permanent --add-port=27017/tcp ; firewall-cmd --reload
mongo
use admin
show users
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


No comments:

Post a Comment