linux使用yum安装mongodb出现GPG key retrieval failed: [Errno 14] problem making ssl connection问题

linux使用yum安装mongodb出现GPG key retrieval failed: [Errno 14] problem making ssl connection问题_其他

在配置yum安装文件的时候

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

将gpgcheck=1改为gpgcheck=0

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

保存退出,重新安装即可