このページの2つのバージョン間の差分を表示します。
— | 01_linux:01_net:19_centos7_chkconfig_systemctl [2016/10/26 04:46] (現在) – 作成 matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 19 CentOS7 自動起動の設定 ====== | ||
+ | CentOS7になってから、自動昨日の設定(chkconfig)がsystemctlに変更された。 | ||
+ | |||
+ | ===== 確認 ===== | ||
+ | |||
+ | < | ||
+ | # systemctl list-unit-files | ||
+ | UNIT FILE | ||
+ | acpid.service | ||
+ | arp-ethers.service | ||
+ | auditd.service | ||
+ | autovt@.service | ||
+ | blk-availability.service | ||
+ | brandbot.service | ||
+ | console-getty.service | ||
+ | console-shell.service | ||
+ | container-getty@.service | ||
+ | cpupower.service | ||
+ | crond.service | ||
+ | dbus-org.freedesktop.hostname1.service | ||
+ | ・ | ||
+ | ・ | ||
+ | ・ | ||
+ | </ | ||
+ | |||
+ | ===== 自動起動設定 ===== | ||
+ | |||
+ | systemctl enable サービス名.service | ||
+ | |||
+ | ===== 自動起動解除 ===== | ||
+ | |||
+ | systemctl disable サービス名.service | ||
+ | |||
+ | {{tag> |