How to check whether a service is started in centos

王林
Release: 2020-05-18 14:19:40
Original
8675 people have browsed it

How to check whether a service is started in centos

You can use the systemctl command to check whether the service has been started. The specific command is such as [systemctl status service name.service].

The .service after the service name can be omitted. This is a change after CenOS7 adopts systemd as the initialization process.

Systemctl is a systemd tool, mainly responsible for controlling the systemd system and service manager.

Systemd is a collection of system management daemons, tools and libraries used to replace the System V initial process. The function of Systemd is to centrally manage and configure Linux systems.

Take the network service network.service as an example:

systemctl status network.service
Copy after login

Recommended tutorial: centos tutorial

The above is the detailed content of How to check whether a service is started in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template