CentOS 6.10からApache 2.4.44以降にアップデートする方法は?

CentOS 6.10からApache 2.4.44以降にアップデートする方法は?

現在、yum info httpd以下が表示されます。

$ yum info httpd

Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
 * base: repos-lax.psychz.net
 * centos-sclo-rh: mirror.chpc.utah.edu
 * centos-sclo-sclo: mirror.centos.lax1.serverforge.org
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: mirror.keystealth.org
 * updates: mirror.arizona.edu
 
Installed Packages
Name        : httpd
Arch        : x86_64
Version     : 2.2.15
Release     : 69.el6.centos
Size        : 3.0 M
Repo        : installed
From repo   : base
Summary     : Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible web server.

まだ正確なバージョンではありませんが、Apache/2.4.34(Red Hat)でアップデートが可能だと思いました。再起動後、2.2.15に戻りました。

ベストアンサー1

あなたの質問に答えるには:Apache 2.4がインストールされていますが、クエリが正しくありません。正しいコマンドは次のとおりです。

yum info httpd24

今説明します。httpdCentOS 6.10用のApache Webサーバー(パッケージ)の最新バージョンには、2.2.15-69公式アップデートで利用可能な最新バージョンはありません。

httpd24別のソフトウェアコレクションリポジトリを使用して、別のパッケージ名でApacheバージョン2.4をインストールできます。

yum install centos-release-scl
yum install httpd24 httpd24-httpd httpd24-mod_ssl

SCL で利用可能なパッケージのリストはここで確認できます。SCLo SIGで利用可能なソフトウェアコレクションのリスト

おすすめ記事