重启ssh服务出现Redirecting to /bin/systemctl restart sshd.service

逃离我推掉我的手 2021-09-20 10:56 747阅读 0赞

转自:https://blog.csdn.net/caijunfen/article/details/70599138

CentOs 重启ssh服务的命令如下:

# service sshd restart

出现:Redirecting to /bin/systemctl restart sshd.service

以下转自:Redirecting to /bin/systemctl restart sshd.service

  1. 查看 sshd 服务是否启动:

???704.jpg

看到上述信息就可以确定是启动了。

  1. 如果没有启动,则需要启动该服务:

  2. systemctl start sshd.service

  3. 重启 sshd 服务:

  4. systemctl restart sshd.service

  5. 设置服务开启自启:

  6. systemctl enable sshd.service

转载于:https://www.cnblogs.com/yadongliang/p/8695215.html

发表评论

表情:
评论列表 (有 0 条评论,747人围观)

还没有评论,来说两句吧...

相关阅读