Install
MongoDB is a NoSQL. It means not only SQL. There are two ways to install MongoDB. One is using yum to install it online. Another is to download installation package. I prefer to install it online.
Description
The reference is offical site: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/
create a /etc/yum.repos.d/mongodb-org-2.6.repo file. Before creating it, you should change the permisson of yum.repos.d fold.
sudo chmod 777 yum.repos.d.
Attention: you should change back the permission of the fold.
And I choose the latest version:
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
/**************/
Then install the MongoDB sudo yum install -y mongodb-org
after installing, start it: sudo service mongod start attention: the name is mongod, not end with ‘b’.