gpt4 book ai didi

linux - 使用 yum 安装 Apache 时出现问题

转载 作者:太空宇宙 更新时间:2023-11-04 12:39:39 25 4
gpt4 key购买 nike

当我运行 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 我该如何解决这个问题?

最佳答案

请下载适用于 CENTOS 7 和 RHEL 7 的存储库 rpm

RHEL/CentOS 7 64 位

# 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

关于linux - 使用 yum 安装 Apache 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40633570/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com