0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Apacheをインストールする

Posted at

yumコマンドでApacheをインストールする

以下のコマンドを実行してください。

# yum install httpd

Apacheがインストールされたか確かめます。
以下のコマンドを実行してください。

# httpd -v

Apacheを起動する

以下のコマンドを実行してください。

# systemctl start httpd

Apacheが起動されたか確かめます。
以下のコマンドを実行してください。

# systemctl status httpd

正常に起動された場合、「Active:active(runnning)」と表示されます。
スクリーンショット 2022-06-03 6.45.41.png

自動起動するように設定する

以下のコマンドを実行してください。

# systemctl enable httpd

自動起動の設定を確認します。

# systemctl is-enabled httpd

自動起動の設定の場合、「enabled」と表示されます。
スクリーンショット 2022-06-03 6.48.55.png

以上で、インストールは終わりです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?