Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Oracle Linux(RedHat)上安装Apache_Linux_Apache_Redhat - Fatal编程技术网

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

无法在Oracle Linux(RedHat)上安装Apache,linux,apache,redhat,Linux,Apache,Redhat,我刚刚安装了oraclelinux(据我所知,这是对RedHat的一种颠覆),正如标题所说,我在尝试设置Apache时遇到了麻烦 键入此命令时(以root用户身份登录): 我得到的答复是: Loading "Installonlyn" plugin Setting up Install Process Setting up repositories No Repositories Available to Set Up Reading repository metadata in from lo

我刚刚安装了oraclelinux(据我所知,这是对RedHat的一种颠覆),正如标题所说,我在尝试设置Apache时遇到了麻烦

键入此命令时(以root用户身份登录):

我得到的答复是:

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@localhostsuurp6der]#列表
加载“installonlyn”插件
用法:yum[options]
选项:
-h、 --帮助显示此帮助消息并退出
-t、 --容忍错误
-C完全从缓存运行,不更新缓存
-c[config file]配置文件位置
-R[分钟]最大命令等待时间
-d[调试级别]调试输出级别
-e[错误级别]错误输出级别
-y所有问题的答案都是肯定的
--版本显示Yum版本并退出
--installroot=[path]设置安装根目录
--enablerepo=[repo]启用一个或多个存储库(允许使用通配符)
--disablerepo=[repo]禁用一个或多个存储库(允许使用通配符)
-x[package],--exclude=[package]
按名称或全局排除程序包
--淘汰启用更新期间的淘汰处理
--noplugins禁用Yum插件
我如何解决这个问题


谢谢。

因为这里清楚地提到“没有可设置的存储库” 首先设置本地存储库并删除存储库,然后执行以下命令:

yum列表| grep-httpd

然后你得到了httpd-*

并安装:


yum-install-httpd

操作系统中“yum-repolist”命令的输出是什么?它对于注释部分来说太大了。我把它加在上面了。请向我提供“yum list”的输出。正如我观察到的,您没有任何存储库,您需要配置public repo。我想我会尝试这样做。我会问我是否需要一些帮助。(顺便说一句,百胜列表的输出太大,无法发布在这里。)
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
[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