我正在运行CentOS 6.1-
# lsb_release -d
Description: CentOS release 6.10 (Final)
发行版是6-
# python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'
Loaded plugins: fastestmirror
{'arch': 'ia32e',
'basearch': 'x86_64',
'infra': 'stock',
'releasever': '6',
'uuid': 'af2ec701-1921-42b0-95b1-4ec3ba0f92b7'}
回忆录-
# cat /etc/yum.repos.d/mongodb-org-4.0.repo
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
运行更新
yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: ftp.cvut.cz
* epel: mirrors.nic.cz
* extras: ftp.cvut.cz
* updates: ftp.cvut.cz
No Packages marked for Update
我从https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/开始-
# yum install -y mongodb-org
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.karneval.cz
* epel: mirrors.nic.cz
* extras: mirror.karneval.cz
* updates: mirror.karneval.cz
No package mongodb-org available.
Error: Nothing to do
https://repo.mongodb.org/yum/redhat/6/mongodb-org/4.0/x86_64/存在
那为什么会失败?
谢谢