在云服务器 ECS Linux CentOS 7 下重启服务不再通过 service 操作而是通过 systemctl 操作。 操作说明如下1. 查看 sshd 服务是否启动看到上述信息就可以确定是启动了。2. 如果没有启动则需要启动该服务systemctl start sshd.service3. 重启 sshd 服务systemctl restart sshd.service4. 设置服务开启自启systemctl enable sshd.service