2013-04-03 36 views
0

我想我的RedHat服務器上安裝蒙戈服務器安裝的MongoDB:http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/獲取錯誤,當我通過這個文件之後在RedHat

這裏是我的環境信息:

[[email protected] 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 
[[email protected] 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 
[[email protected] yum.repos.d]# cat 10gen.repo 
[10gen] 
name=10gen Repository 
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686 
gpgcheck=0 
enabled=1 

而且我得到這個當我嘗試安裝蒙戈服務器消息:

[[email protected] 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,我不太清楚,如果這是由百勝的配置錯誤引起的。有人能幫我離開這裏嗎?

回答

0

看起來你的配置文件中存在一些衝突。嘗試下載rpm包並通過rpm安裝--hiv xxx.rpm

+0

你有這個殼嗎?我真的是Linux新手。 – 53iScott

+0

Scott,你應該爲你arch下載rpm文件,然後運行類似UNIX_PROMPT> sudo rpm -hiv 系統會詢問你的root密碼,但你應該擁有它,因爲你可以運行「yum」,對嗎? :) –

+0

嗨達里奧,是的,你知道了!我試圖通過文檔安裝MongoDB:[link](http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-c​​entos-or-fedora-linux/),但在這個網頁上沒有使用rpm命令的指南。我現在想出了兩種解決方法 - 1.下載rpm包並通過rpm命令安裝它們,但找不到要下載的軟件包; 2.處理配置文件中的衝突,這可能更容易和更好的解決方案,因爲我只需要完全重新安裝Yum(我猜)。你能幫我嗎? – 53iScott

相關問題