If you are using SELinux, you must configure SELinux to allow MongoDB to start on Red Hat Linux-based systems. Now you can install the latest stable version of MongoDB using Yum: yum install mongodb-org -y Configuring SELINUX. You can follow this link to configure security and authentication of this Database. Update your repositories list executing the following command: yum repolist. To do this, you must first start MongoDB # systemctl start rvice STEP 2: Install MongoDB 4.4 on CentOS 6, CentOS 7 and CentOS 8. After that, if you want to install the latest, stable and current version of MongoDB, you need to enter the following: # sudo yum install -y mongodb-org Configuring MongoDBĪt this stage, the installation of this Database is completed. STEP 1: Add Repository into the CentOS Server. Save this and then you can close your text editor.
The first one permits the installation of the MongoDB packages and the second one imports a GPG key.
Then paste into your text editor what is described below: īaseurl=$releasever/mongodb-org/4.4/x86_64/ We can install the mongodb-org package from the third-party repository using the yum utility. First, you need to create a file /etc//mongodb-org-4.4.repo for this database # nano /etc//mongodb-org-4.4.repo Install MongoDB Database using CentOS Package Installation Manager – yum. The guide focuses on the following distribution versions: RHEL / CentOS 8, RHEL / CentOS 7 and older – RHEL / CentOS 6 Install MongoDB Community Edition
#Install mongodb centos 6 how to#
This article will describe how to install this Database on a Linux distribution such as CentOS. It is the leading NoSQL database most commonly used in modern web applications. Step 6: docker logs mongoinstance002 should sysout. Step 5: docker ps should list the container process. docker run -p 28002:27017 -name mongoinstance002 -d uimirror/mongodb. docker run -p 28001:27017 -name mongoinstance001 -d uimirror/mongodb. MongoDB is a general-purpose, distributed, document-based database built for modern app developers and the cloud era. Step 3: docker build -tag uimirror/mongodb.