Linux SSH 服务重启命令及常见错误解决
The 'systemctl' command is specific to systemd, which is the init system used by many Linux distributions. If you are getting the 'command not found' error, it means that your Linux distribution does not use systemd or does not have the systemctl command available.
In such cases, you can try using the following commands to restart the SSH service:
For distributions using SysV init system:
service ssh restart
For distributions using Upstart init system:
sudo restart ssh
For distributions using OpenRC init system:
sudo rc-service sshd restart
The exact command may vary depending on your distribution and version.
原文地址: https://www.cveoy.top/t/topic/f2EW 著作权归作者所有。请勿转载和采集!