yum install mongodb 3.2失败 [英] yum install mongodb 3.2 fails
本文介绍了yum install mongodb 3.2失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在CentOS 7机器上安装mongodb 3.2,并且在查找软件包时遇到问题.
I am trying to install mongodb 3.2 on a CentOS 7 machine and facing issues in locating the packages.
我已根据文档更新了回购文件:
I have updated the repo file as per the documentation:
[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
运行sudo yum install mongodb-org
时出现此错误:
[centos@ip-10-24-1-228 ~]$ sudo yum install mongodb-org
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.osuosl.org
* epel: linux.mirrors.es.net
* extras: mirror.lax.hugeserver.com
* updates: mirror.hmc.edu
No package mongodb-org available.
Error: Nothing to do
为什么会收到此消息?
Why do I get this message?
推荐答案
我弄清楚了我的问题所在.在我的yum.conf
文件中
I figured out what was my problem. It was in my yum.conf
file
exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools
一旦我注释掉yum.conf
中的这一行,一切就很好了.
Once I commented out this line from yum.conf
, everything went fine.
这篇关于yum install mongodb 3.2失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文