Linux common commands-94: systemctl

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:


 # 启动服务,比如ssh服务systemctl start sshd # 停止服务systemctl stop sshd # 重启服务systemctl restart sshd # 查看服务的状态systemctl status sshd

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment