¡Ü chkconfig - updates and queries runlevel information for system services (CentOS 6 ÀÌÇÏ SysV - /etc/init.d)
¡Ü systemd, init - systemd system and service manager (CentOS 7 ÀÌ»ó systemd - /etc/systemd)
¡Ü List processes
¡Û chkconfig:
# chkconfig --list
¡Û systemd:
# systemctl list-units
# systemctl list-unit-files
¡Ü Enable a service
¡Û chkconfig:
# chkconfig [¼ºñ½º¸í] on
¡Û systemd:
# systemctl enable [¼ºñ½º¸í].service
¡Ü Disable a service
¡Û chkconfig:
# chkconfig [¼ºñ½º¸í] off
¡Û systemd:
# systemctl disable [¼ºñ½º¸í].service
¡Ü Start a service
¡Û chkconfig:
# service [¼ºñ½º¸í] start
¡Û systemd:
# systemctl start [¼ºñ½º¸í].service
¡Ü Stop a service
¡Û chkconfig:
# service [¼ºñ½º¸í] stop
¡Û systemd:
# systemctl stop [¼ºñ½º¸í].service
¡Ü Check the status of a service
¡Û chkconfig:
# service [¼ºñ½º¸í] status
¡Û systemd:
# systemctl status [¼ºñ½º¸í].service
|