课程: Linux CentOS 7: Shells and Processes

今天就学习课程吧!

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

Get systemd service status

Get systemd service status

- [Instructor] System D manages system services in CentOS 7. It also manages a lot of other objects like devices, system timers, and targets. The system D equivalent to run levels. System D objects are called units and for each unit, there's a unit file for configuration. For this course, we are only concerned with service units and service unit files. The command that System D uses to manage these units is system CTL. To look at our service unit files, type into a terminal, systemctl, space, list-unit-files, space, -at, space, service and hit Enter. By default, list unit files -T service will show all enabled service unit files. Enabled, meaning services that are configured to start up automatically. By adding -A, it will show both enabled and disabled service unit files. Notice that the system CTL sub command is list unit files. This means we're just looking at the unit files and their status. We're not yet looking at the running status of services. The output will be in two…

内容