33
28

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 3 years have passed since last update.

Amazon Linux 2にApacheをインストール&起動

Posted at

#Apacheをインストール

yumを使います。

yumのアップデート
sudo yum update
Apacheインストール
sudo yum install httpd

#Apacheの起動、停止、自動起動

起動
sudo systemctl start httpd.service
停止
sudo systemctl stop httpd.service
再起動
sudo systemctl restart httpd.service

またインスタンス起動時に自動で起動させることができます。

自動起動
sudo systemctl enable httpd.service
自動起動停止
sudo systemctl disable httpd.service
33
28
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
33
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?