课程: Linux CentOS 7: Shells and Processes

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Manage systemd services

Manage systemd services

- [Instructor] System services are processes started by the OS and they're managed by the system CTL command. With system CTL, we can start, stop, and restart services. Let's look at all unit files. In a terminal, type in system CTL, space, list, dash, unit, dash, files, space, dash AT, space, service, and hit enter. This will show which services are enabled or disabled. Let's pick the AT service since it's enabled. Let's stop the AT service using system CTL. You'll need to elevate privileges using sudo. Press Q to quit and then type in sudo, space, system CTL, stop, space, ATD, and hit enter. Type in your password and hit enter again. Now let's check the status of the ATD service. Type in system CTL, space, status, space, ATD, and hit enter. We can see that the ATD service is enabled but is not currently running. We can start the ATD service backup using the system CTL command. We'll need to elevate privileges using sudo, space, system CTL, space, start, space, ATD and hit enter…

内容