简体   繁体   English

如何在 RedHat 服务器上安装 httpd? 什么 Yum 存储库?

[英]How to install httpd on RedHat Server? What Yum repository?

I am pretty new with this kind of server so please excuse my ignorance.我对这种服务器很陌生,所以请原谅我的无知。

I asked my company for a Linux Server for hosting a web application and they gave me this system: Red Hat Enterprise Linux Server release 7.7 (Maipo) so the first thing I did was trying to install Apache HTTP, which package is called httpd in yum repositories. I asked my company for a Linux Server for hosting a web application and they gave me this system: Red Hat Enterprise Linux Server release 7.7 (Maipo) so the first thing I did was trying to install Apache HTTP, which package is called httpd in yum存储库。

Following a tutorial I did:按照我做的教程:

sudo yum list httpd

Which started returning a series of time out messages coming from a mirror related to my company (Are they hosting rhel repositories? Is this a common practice?)哪个开始返回来自与我公司相关的镜像的一系列超时消息(他们是否托管 rhel 存储库?这是一种常见的做法吗?)

Anyway I started disabling this mirrors at which point the command无论如何,我开始禁用这个镜像,此时命令

sudo yum list httpd

returned just:刚刚返回:

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository rhel-7-server-rpms is listed more than once in the configuration
Error: No matching Packages to list

I tried adding back some repo without any basic knowledge of the technology so I'll just post the result of this command:我尝试在没有任何技术基础知识的情况下添加一些 repo,所以我将发布此命令的结果:

sudo yum repolist enabled

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository rhel-7-server-rpms is listed more than once in the configuration
repo id                                                 repo name                                                        status
epel/x86_64                                             Extra Packages for Enterprise Linux 7 - x86_64                   13,457
rhel-7-server-optional-rpms/7Server/x86_64              Red Hat Enterprise Linux 7 Server - Optional (RPMs)              19,380
vmware-tools                                            VMware Tools                                                          1
repolist: 32,838

What should I do?我应该怎么办? How do I know which repo to add and/or enable to install this common package?我如何知道要添加和/或启用哪个存储库来安装这个常见的 package?

httpd2.4 for RHEL is packaged as a Software Collection, so you have to enable some repos first.用于 RHEL 的 httpd2.4 被打包为软件集合,因此您必须先启用一些存储库。 See these docs:请参阅这些文档:

Release notes Installation 发行说明安装

Once you "scl enable" the proper repos, then you'll "yum install httpd24"一旦你“scl enable”正确的repos,那么你将“yum install httpd24”

If you want a shortcut for setup, use step 1 only on this Python Hello World page , then yum install.如果您想要安装快捷方式,请仅在此Python Hello World 页面上使用步骤 1,然后 yum 安装。

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

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