The error message you are seeing indicates that the "systemctl" command is not found on your system.

"systemctl" is a command used to manage systemd services on Linux systems. It is commonly found on distributions that use systemd as the init system, such as Ubuntu, CentOS, and Fedora.

If you are using a distribution that does not use systemd, such as older versions of Ubuntu that use Upstart, you may need to use a different command to restart the SSH service. For example, on Upstart-based systems, you can use the following command:

sudo service ssh restart

If you are using a different distribution or version, please provide more information about your system so that we can provide more specific instructions.

linux systemctl restart sshdservice-bash systemctl command not found

原文地址: https://www.cveoy.top/t/topic/jdew 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录