安装yum源

  1. #cat /etc/yum.repos.d/mongo.repo
  2. [mongodb-org-3.6]
  3. name=MongoDB Repository
  4. baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.6/x86_64/
  5. gpgcheck=1
  6. enabled=1
  7. gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
  8. #yum install mongodb-org-3.6.9