Create a /etc/yum.repos.d/mongodb-org-4.0.repo

 

Install MongoDB Community Edition on Red Hat Enterprise or CentOS Linux — MongoDB Manual https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/

Configure the package management system (yum).

Create a /etc/yum.repos.d/mongodb-org-4.0.repo file so that you can install MongoDB directly using yum:

[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc

 

posted @ 2018-08-27 23:14  papering  阅读(597)  评论(0编辑  收藏  举报