如何在RedHat Server上安装httpd?什么百胜库?

问题描述 投票:0回答:1

我对这种服务器还很陌生,所以请原谅我的无知。

我向我的公司索要用于托管Web应用程序的Linux服务器,他们给了我这个系统:Red Hat Enterprise Linux服务器版本7.7(Maipo)因此,我所做的第一件事就是尝试安装Apache HTTP,在yum存储库中该软件包称为httpd。

按照我的教程进行:

sudo yum list httpd

哪个开始返回与我公司相关的镜像发出的一系列超时消息(它们是否托管了rhel存储库?这是常见的做法吗?]

无论如何,我从那时开始禁用此镜像

sudo yum list httpd

刚返回:

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

我试图在没有任何技术基础知识的情况下添加一些回购,所以我将只发布此命令的结果:

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

我该怎么办?我如何知道要添加和/或启用该通用软件包的仓库?

apache http repository redhat yum
1个回答
0
投票

httpd2.4 for RHEL被打包为软件集合,因此您必须首先启用一些存储库。请参阅以下文档:

Release notesInstallation

一旦“ scl启用”适当的存储库,您将“ yum安装httpd24”

如果要设置快捷方式,请仅在此Python Hello World page上使用步骤1,然后安装yum。

© www.soinside.com 2019 - 2024. All rights reserved.