【问题标题】:Get error when I install MongoDB on RedHat在 RedHat 上安装 MongoDB 时出现错误
【发布时间】:2013-04-03 09:39:59
【问题描述】:

我试图通过以下文档在我的 RedHat 服务器上安装 Mongo 服务器:http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/

这是我的环境信息:

[root@localhost tmp]# uname -a
Linux localhost.localdomain 2.6.18-164.el5PAE #1 SMP Tue Aug 18 15:59:11 EDT 2009 i686 i686 i386 GNU/Linux
[root@localhost yum.repos.d]# ll /etc/yum.repos.d/
-rw-r--r-- 1 root   root    115 Apr  3 17:19 10gen.repo
-rw-r--r-- 1 root   root   1426 May 24  2009 CentOS-Base.repo
-rw-r--r-- 1 root   root    954 Aug 12  2010 epel.repo
-rw-r--r-- 1 root   root   1054 Aug 12  2010 epel-testing.repo
-rw-r--r-- 1 root   root    684 Jan 18  2007 mirrors-rpmforge
-rw-r--r-- 1 root   root   1644 Apr 12  2012 rhel-debuginfo.repo
-rw-r--r-- 1 root   root    428 Jan 18  2007 rpmforge.repo
[root@localhost yum.repos.d]# cat 10gen.repo
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686
gpgcheck=0
enabled=1

我在尝试安装 Mongo 服务器时收到此消息:

[root@localhost yum.repos.d]# yum install mongo-10gen-server mongo-10gen
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository update is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository testing is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * epel: mirrors.ustc.edu.cn
 * rpmforge: fr2.rpmfind.net
Setting up Install Process
No package mongo-10gen-server available.
No package mongo-10gen available.
Nothing to do

我是 Linux 新手,我不太确定这是否是由于 yum 配置错误造成的。有人可以帮我离开这里吗?

【问题讨论】:

    标签: linux mongodb installation redhat yum


    【解决方案1】:

    您的配置文件中似乎存在一些冲突。尝试下载 rpm 包并通过 rpm -hiv xxx.rpm 安装

    【讨论】:

    • 你有这个外壳吗?我真的是 Linux 新手。
    • Scott,你应该为你下载 rpm 文件,然后运行类似 UNIX_PROMPT>sudo rpm -hiv 系统会询问你的 root 密码,但你应该有它,因为你可以运行 "嗯”,对吧? :)
    • 嗨达里奥,是的,你明白了!我试图通过文档安装 MongoDB:link,但在此网页中没有使用 rpm 命令的指南。我现在想出了两种解决方法 - 1. 下载 rpm 包并通过 rpm 命令安装它们,但我找不到要下载的包; 2. 处理配置文件中的冲突,这可能是一个更容易和更好的解决方案,因为我只需要完全重新安装 Yum(我猜)。你能帮帮我吗?
    • 其实我已经找到了MongoDB的下载链接,并且我已经安装成功了:)但是,你能帮我解决冲突的问题吗?
    • Scott,很抱歉我这辈子从来没有跑过 yum。
    【解决方案2】:

    我跳过了 Yum 问题,并尝试从该网站 http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ 下载软件包。 它正在工作。

    【讨论】:

      猜你喜欢
      • 2016-12-25
      • 2020-01-24
      • 1970-01-01
      • 1970-01-01
      • 2020-08-10
      • 1970-01-01
      • 2018-06-03
      • 2017-12-11
      • 2023-03-31
      相关资源
      最近更新 更多