CentOS 7 查看/启动/重启/自启ssh服务


CentOS 7 下重启服务不再通过 service 操作,而是通过 systemctl 操作。

查看ssh服务:systemctl status sshd.service

启动ssh服务:systemctl start sshd.service

重启ssh服务:systemctl restart sshd.service

自启ssh服务:systemctl enable sshd.service

标签:

文章发布时间:2023-09-20