linux - 无法在 Oracle Linux (RedHat) 上安装 Apache

标签 linux apache redhat

我刚刚安装了 Oracle Linux(据我所知,这是 RedHat 的某种颠覆),正如标题所示,当我尝试设置 Apache 时遇到了麻烦。

当我键入此命令(以 root 身份登录)时:

yum install httpd

我收到这样的回复:

Loading "Installonlyn" plugin
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: httpd
Nothing to do

更新: yum repolist 命令的输出:

[root@localhost suurp6der]# yum repolist
Loading "installonlyn" plugin

usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase >

options:
  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C                    run entirely from cache, don't update cache
  -c  [config file]     config file location
  -R  [minutes]         maximum command wait time
  -d  [debug level]     debugging output level
  -e  [error level]     error output level
  -y                    answer yes for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  -x [package], --exclude=[package]
                        exclude package(s) by name or glob
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins

如何解决这个问题?

谢谢。

最佳答案

因为这里明确提到“没有可供设置的存储库” 首先设置本地并删除存储库并执行以下命令:

百胜列表 | grep httpd

然后你会得到httpd-*

并安装:

yum 安装 httpd

关于linux - 无法在 Oracle Linux (RedHat) 上安装 Apache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29074147/

相关文章:

linux - 如何使用 bash 在 csv 文件中查找整个句子并用另一个文件中的句子替换它?

windows - 基于操作系统的C++条件编译

java - Apache 公共(public)守护进程 - procrun。停止服务挂起

regex - Force SSL .htaccess Only For WWW not any other subdomain

linux - Linux 中的 Oracle 数据库安装程序 [INS-10102] 安装程序初始化失败

linux - yum install 无法在没有 root 权限的集群上运行

python - 从 Python 调用 PARI/GP

c - 如何将固件文件存储到头文件 (.h)

android - 包 org.apache.cordova 不存在 android studio

linux - 使用内核模块更改文件打开模式