简体   繁体   English

使用yum安装Apache时出现问题

[英]Issue while installing Apache with yum

When I run yum install httpd-devel I get this : 当我运行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

I'm using rhel 7 how can I solve this? 我正在使用rhel 7如何解决此问题?

Please download the rpm of repository for CENTOS 7 and RHEL 7 请下载CENTOS 7和RHEL 7的存储库的rpm

RHEL/CentOS 7 64-Bit 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

You must realize that RHEL operating system is not FOSS (free and open-source) like CentOS or Ubuntu. 您必须认识到RHEL操作系统不是像CentOS或Ubuntu那样的FOSS(免费和开源)。 You need to purchase a subscription to use its services like software repository and tech support. 您需要购买订阅才能使用其服务,例如软件存储库和技术支持。

You can have look at their catalog if you want, or you can use CentOS which is derived from RHEL, but is FOSS. 您可以根据需要查看其目录 ,也可以使用从RHEL衍生而来的CentOS,它是FOSS。 Both the operating systems are closely related, and almost everything you can do on RHEL can be done in CentOS. 这两个操作系统密切相关,几乎可以在RHEL上执行的所有操作都可以在CentOS中完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM