📅  最后修改于: 2023-12-03 14:47:50.108000             🧑  作者: Mango
In this guide, we will learn how to use systemd to stop and start SSHD (Secure SHell Daemon) services on Linux systems. systemd is a system and service manager that provides a wide range of functions for managing various aspects of a Linux system.
Before proceeding, you should have a basic understanding of Linux command-line operations and have access to a Linux system with systemd installed.
To stop the SSHD service using systemd, follow these steps:
sudo systemctl stop sshd
The systemctl command is used to control systemd services, and the stop
option is used to stop a specified service.
To start the SSHD service, follow these steps:
sudo systemctl start sshd
The start
option is used to start a specified service.
You can also check the status of the SSHD service using systemd. To do this, follow these steps:
systemctl status sshd
This command will provide you with information about the current status of the SSHD service, including whether it is running or not.
In this guide, we have learned how to use systemd to stop, start, and check the status of the SSHD service on Linux systems. systemd provides a powerful and flexible way to manage services, making it easier for programmers and system administrators to control and monitor various aspects of their Linux systems.