centos7 mongodb 3.4 yum 安装

3.4

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

 

3.6

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

 

yum  install mongodb-org

 

posted @ 2017-02-14 12:53  181282945  阅读(11218)  评论(0编辑  收藏  举报