systemctl command is used to manage system services. The initialization process service of newer versions of linux distributions has been replaced by the current systemd service from the original init , and the management of the systemd service is done through systemctl .
Syntax format: systemctl parameter service
Common parameters:

Example:
# 启动服务,比如ssh服务systemctl start sshd # 停止服务systemctl stop sshd # 重启服务systemctl restart sshd # 查看服务的状态systemctl status sshd
This article is reprinted from https://xugaoxiang.com/2022/08/15/linux-cmds-94-systemctl/
This site is for inclusion only, and the copyright belongs to the original author.