在RedHat上安装MongoDB时出错 [英] Get error when I install MongoDB on RedHat

查看:126
本文介绍了在RedHat上安装MongoDB时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过遵循以下文档在我的RedHat服务器上安装Mongo Server:

I was trying to install the Mongo Server on my RedHat server via following this document: 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服务器时,我收到此消息:

And I get this message when I was trying to install Mongo server:

[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的错误配置引起的.有人可以帮我离开这里吗?

I'm new to Linux, and I'm not quite sure if this was caused by wrong configuration of yum. Can someone help me out of here?

推荐答案

我跳过了Yum问题,尝试从此网站

I skipped over the Yum problem and I tried to download the package from this website http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ . It's working.

这篇关于在RedHat上安装MongoDB时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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