LoginSignup
14
13

More than 5 years have passed since last update.

Amazon Linux (EC2) Apacheを自動起動する設定

Posted at

OS再起動時に、Apacheも起動するように設定する

chkconfig コマンドを使用して、システムがブートするたびに Apache ウェブサーバーが起動するように設定します。

[ec2-user ~]$ sudo chkconfig httpd on

Tip
chkconfig コマンドでは、それを使用してサービスを正常に有効にしたときに確認メッセージは一切表示されません。
httpd が有効になっていることは、次のコマンドを実行して確認できます:

[ec2-user ~]$ chkconfig --list httpd
httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off

ここで、httpd は実行レベル 2、3、4、5 で on になります (これが表示したい対象です)。

14
13
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
14
13