簡體   English   中英

無法在Oracle Linux(RedHat)上安裝Apache

[英]Unable to install Apache on Oracle Linux (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

我該如何解決這個問題?

謝謝。

因為這里明確提到“沒有可用的存儲庫”,所以首先在本地安裝並刪除存儲庫,然后在comman下面執行:

yum list | grep httpd

然后你得到httpd- *

並安裝:

yum install httpd

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM