我正在尝试安装mongodb
,fedora 22
这是我收到的错误
$ yum search mongo-org
Failed to synchronize cache for repo 'MongoDB' from 'http://repo.mongodb.org/yum/redhat/22/mongodb-org/3.0/x86_64/': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Last metadata expiration check performed 1:13:12 ago on Tue Jun 9 16:01:19 2015.
Error: No matches found.
答案1
该网址根本不存在(不再存在?)。
他们现在只提供红帽 RPM:http://repo.mongodb.org/yum/redhat/
我猜最接近 Fedora 22 的 Red hat 版本是 RHEL7...
答案2
创造:
sudo gedit /etc/yum.repos.d/mongodb.repo
包含以下内容:(适用于 64 位)
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
然后安装
sudo yum install mongo-10gen mongo-10gen-server
运行蒙戈:
service mongod start
欲了解更多信息,请参阅: http://docs.mongodb.org/v2.2/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/