centos7里已經基本不再使用chkconfig了:
[fullcentos@localhost ~]$ chkconfig --list
注意:該輸出結果只顯示 SysV 服務,并不包含原生 systemd 服務。SysV 配置數據可能被原生 systemd 配置覆蓋。
如果您想列出 systemd 服務,請執(zhí)行 'systemctl list-unit-files'。
欲查看對特定 target 啟用的服務請執(zhí)行
'systemctl list-dependencies [target]'。
[fullcentos@localhost ~]$ chkconfig --list
注意:該輸出結果只顯示 SysV 服務,并不包含原生 systemd 服務。SysV 配置數據可能被原生 systemd 配置覆蓋。
如果您想列出 systemd 服務,請執(zhí)行 'systemctl list-unit-files'。
欲查看對特定 target 啟用的服務請執(zhí)行
'systemctl list-dependencies [target]'。
centos 7以后就用systemctl start httpd 了 ,systemctl代替service和chkconfig了,跟課程不太一樣,注意哦!
2016-09-08