按照此处的说明进行操作:http://www.mongodb.org/display/DOCS/CentOS+and+Fedora+Packages
真的无法理解我应该做什么...崩溃了,只得到了 linux 二进制文件,但我想要 yum 控制...
$ cat /etc/yum.repos.d/10gen-mongodb.repo
[10gen]
name=10gen Repository
baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/x86_64/
gpgcheck=0
$ sudo yum install mongo-stable mongo-stable-server
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package mongo-stable available.
No package mongo-stable-server available.
还尝试过:
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
这些软件包在这些位置不再可用吗?不确定这是否是 redhat 与 centos 之间的技术问题。谢谢!
答案1
http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
64 位系统使用 baseurl , http://downloads-distro.mongodb.org/repo/redhat/os/i686
32 位系统使用 baseurl。新包名称:mongo-10gen 和 mongo-10gen-server。安装:
# yum install mongo-10gen-server mongo-10gen