Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 670 Bytes

mongodb.md

File metadata and controls

32 lines (30 loc) · 670 Bytes
  1. 新建yum源。
$ vim /etc/yum.repos.d/mongodb-org-3.6.repo
  1. 配置yum源内容

mongodb-org-3.6

[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

mongodb-org-4.2

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