4
4

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

Apacheの自動起動設定

Last updated at Posted at 2019-07-06

自動起動を確認

$ sudo chkconfig --list httpd
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off

Linuxでのランレベル

ランレベル 説明
0 インスタンス停止
1 シングルユーザモード(rootのみログイン可)
2 ネットワーク通信なしのマルチユーザモード
3 マルチユーザモード(通常の起動状態)
4 未使用
5 グラフィカルユーザインターフェースが起動する状態
6 インスタンス再起動

httpdの自動起動を設定

$ sudo chkconfig httpd on
$ sudo chkconfig --list httpd
httpd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off

httpdの自動起動設定の解除


$ sudo chkconfig httpd off
[ec2-user@ip-172-31-89-52 ~]$ sudo chkconfig --list httpd
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off

(補足)インストールから起動まで


$ sudo yum -y update
$ sudo yum install -y httpd
$ sudo service httpd start
4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?