
If service has been started then mongodb has been installed properly else you may check mongodb error log here and troubleshoot the issue. 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. You can follow the state of the process for errors or important messages by watching the output in the /var/log/mongodb/mongod.log file. Make sure packages are now available from the repository, by executing the following command: yum list grep percona Install the. Step 3: docker build -tag uimirror/mongodb. When prompted Is this ok y/N:, simply type y and then hit the enter key. Then exit and save the file with the command :wq.
#Install mongodb centos 6 how to
Extract the files from the downloaded archive. How To Install MongoDB on CentOS 6 Step 1: Add the MongoDB Repository. bashprofile PATHPATH:HOME/bin PATHPATH:/app/mongodb/mongodb-linux. You must rebbot the system for the changes to take effect.Ĥ) Check mongod Services #service mongod status Install for 64-bit Linux Download the binary files for the desired release of MongoDB. 1: Installation mkdir -p /app/mongodb tar zxvf mongodb-linux-x8664-rhel62-3.4.6.tgz vi.

To install a specific release of MongoDB, specify each component package individually and append the version number to the package name, as in the following example: #sudo yum install -y mongodb-org-3.0.13 mongodb-org-server-3.0.13 mongodb-org-shell-3.0.13 mongodb-org-mongos-3.0.13 mongodb-org-tools-3.0.13ģ) Disable SELinux Disable SELinux by setting the SELINUX setting to disabled in /etc/selinux/config. To install the latest stable version of MongoDB, issue the following command: #sudo yum install -y mongodb-org

#vi /etc//mongodb-org-3.0.repoįor this version of MongoDB Use the following repository file: īaseurl=$releasever/mongodb-org/3.0/x86_64/Ģ) Install the MongoDB packages and associated tools. Wondering how to install mongoDB 3.0 on CentOS release 6.5?ġ) Configure the package management system (yum).Ĭreate a /etc//mongodb-org-3.0.repo file so that you can install MongoDB directly, using yum.
