How to install mongodb spesific version inside Centos 7

RPM Package

Index / rpm package by mongodb

URL: https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/RPMS/
mongodb-org-3.4.0-1.el7.x86_64.rpm
mongodb-org-mongos-3.4.0-1.el7.x86_64.rpm
mongodb-org-server-3.4.0-1.el7.x86_64.rpm
mongodb-org-shell-3.4.0-1.el7.x86_64.rpm
mongodb-org-tools-3.4.0-1.el7.x86_64.rpm


curl -LO https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/RPMS/mongodb-org-shell-3.4.0-1.el7.x86_64.rpm
curl -LO https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/RPMS/mongodb-org-mongos-3.4.0-1.el7.x86_64.rpm
curl -LO https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/RPMS/mongodb-org-server-3.4.0-1.el7.x86_64.rpm
curl -LO https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/RPMS/mongodb-org-shell-3.4.0-1.el7.x86_64.rpm
curl -LO https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/RPMS/mongodb-org-tools-3.4.0-1.el7.x86_64.rpm

sudo rpm -i mongodb-org-shell-3.4.0-1.el7.x86_64.rpm
sudo rpm -i mongodb-org-mongos-3.4.0-1.el7.x86_64.rpm
sudo rpm -i mongodb-org-server-3.4.0-1.el7.x86_64.rpm
sudo rpm -i mongodb-org-shell-3.4.0-1.el7.x86_64.rpm
sudo rpm -i mongodb-org-tools-3.4.0-1.el7.x86_64.rpm

sudo rpm -Uvh mongodb-org-3.4.0-1.el7.x86_64.rpm

How to start mongodb

- command line how to start that mongodb -

1. systemctl enable mongod (first time for enable start at booting system)
2. systemctl start mongod

0 comments:

Post a Comment

Powered by Blogger.