yum install mongodb 3.2 失败 [英] yum install mongodb 3.2 fails

查看:29
本文介绍了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.

我已经按照文档更新了 repo 文件:

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 时出现此错误:

When running sudo yum install mongodb-org I am getting this error:

[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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆