CentOS 7 下重启服务不再通过 service 操作,而是通过 systemctl 操作。
查看ssh服务:systemctl status sshd.service
启动ssh服务:systemctl start sshd.service
重启ssh服务:systemctl restart sshd.service
自启ssh服务:systemctl enable sshd.service
CentOS 7 下重启服务不再通过 service 操作,而是通过 systemctl 操作。
查看ssh服务:systemctl status sshd.service
启动ssh服务:systemctl start sshd.service
重启ssh服务:systemctl restart sshd.service
自启ssh服务:systemctl enable sshd.service
标签: Linux VPS教程