![yum install mongodb centos 7 yum install mongodb centos 7](https://www.how2shout.com/linux/wp-content/uploads/2021/05/Command-to-install-MongoDB-on-rocky-Linux-8-min.jpg)
To view the server status, Type: systemctl status mongod. STEP 1: Add Repository into the CentOS Server.
#YUM INSTALL MONGODB CENTOS 7 HOW TO#
So in this tutorial we will show how to install MongoDB Community Edition using the package management system for these specifications as below: MongoDB’s version : MongoDB 4.2. To view the server version, Type: mongod -version MongoDB Enterprise is available as part of the MongoDB Enterprise Advanced subscription. Start mongod service with systemctl commandĪfter the installation is finished, Start the rvice with systemctl command: sudo systemctl start rviceĪlso set rvice to start at system reboot: sudo systemctl enable rvice The mongodb-org package also includes following core packages, mongodb-org-server, mongodb-org-shell and mongodb-org-tools. Now the repository is set, We can install mongodb with yum install command: sudo yum -y install mongodb-org
![yum install mongodb centos 7 yum install mongodb centos 7](https://www.techalgo.xyz/media/post/images/Install_MongoDB_on_CentOS_6_7_8_1.png)
Installing MongoDB on Centos 7 Before proceeding further, Make sure you have root. yum repolist Install MongoDB with yum install command rootlocalhost MongoDB sudo yum install -y mongodb-org-server-5. Run the yum repolist command and make sure mongodb repository is active. Then, open the mongodb-org-3.4.repo file with your preferred text editor and add following entries. Let's start with creating the yum repository for MongoDB Database Server.Ĭreate yum repo file: touch /etc//mongodb-org-3.4.repo
![yum install mongodb centos 7 yum install mongodb centos 7](https://miro.medium.com/fit/c/294/294/1*QOyqvYpm4RYI3GQyN2etlw.png)