当我运行yum install httpd-devel
时,我明白了:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7Server&arch=x86_64&repo=os&infra=$infra error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Erreur inconnue"
One of the configured repositories failed (Inconnu),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
Cannot find a valid baseurl for repo: base/7Server/x86_64
我使用rhel 7如何解决这个问题?
答案 0 :(得分:0)
请下载CENTOS 7和RHEL 7的存储库rpm
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
# rpm -ivh epel-release-7-8.noarch.rpm
答案 1 :(得分:0)
你必须意识到RHEL操作系统不是像CentOS或Ubuntu那样的FOSS(免费和开源)。您需要购买订阅才能使用其软件存储库和技术支持等服务。
如果需要,您可以查看他们的catalog,或者您可以使用从RHEL派生的CentOS,但这是FOSS。两个操作系统都是密切相关的,几乎所有可以在RHEL上完成的工作都可以在CentOS中完成。