(1)安装mongodb
1.参考文档
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/
2.创建yum源
#vim /etc/yum.repos.d/mongodb.repo
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
3.yum安装mongodb
yum install -y mongodb-org