Centos7 の 自動起動(systemctl)設定を確認し設定または解除する

Centos7 の 自動起動設定は2つあります。 (新しいもの : systemctl 、古いもの : chkconfig)

● Centos7 の systemctlで自動起動設定を確認する

systemctl list-unit-files  -t service

● Centos7 の systemctlでサービス の 自動起動設定を off にする

例: httpd.service を自動起動するように設定します

systemctl enable httpd.service

● Centos7 の systemctlでサービス の 自動起動設定を off にする

例: vsftpd.service を自動起動しないように設定します

systemctl disable vsftpd.service

● Centos7 の chkconfigで自動起動設定を確認する

chkconfig --list

● Centos7 の chkconfig でサービス の 自動起動設定を off にする

例: webmin を自動起動するように設定します

chkconfig webmin on

● Centos7 の systemctlでサービス の 自動起動設定を off にする

例: webmin を自動起動しないように設定します

chkconfig webmin off
No.1411
01/09 17:10

edit