3.2. YUM を使用した RPM パッケージからの Apache HTTP Server のインストール
YUM パッケージマネージャーを使用して、Apache HTTP Server を RPM パッケージから Red Hat Enterprise Linux にインストールできます。
前提条件
手順
お使いのオペレーティングシステムのバージョンに対応した Apache HTTP Server CDN リポジトリーにサブスクライブするには、root ユーザーで次のコマンドを入力します。
# subscription-manager repos --enable <repository>注記Red Hat Enterprise Linux 7 を使用している場合は、
<repository>をjb-coreservices-1-for-rhel-7-server-rpmsに置き換えてください。Red Hat Enterprise Linux 8 を使用している場合は、
<repository>をjb-coreservices-1-for-rhel-8-x86_64-rpmsに置き換えてください。root ユーザーで以下のコマンドを実行し、Apache HTTP Server をインストールします。
# yum groupinstall jbcs-httpd24注記Red Hat Enterprise Linux 8 のリリースにより、JBCS は yum
groupinstallコマンドを使用しなくなりました。Red Hat Enterprise Linux 8 での HTTPD の設定に関する詳細は、Deploying different types of servers: Setting up the Apache HTTP Web Server を参照してください。