prettyisshit

在centos7下重启服务不再是 service 服务名称 动作 这样的方式的.而是:

systemctl 动作 服务名.service

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

systemctl status sshd.service

看到的这样的信息就可以确定是启动了.

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

systemctl start sshd.service

3. 如果需要重启sshd服务可使得

systemctl restart sshd.service

4. 设置为开机启动可使用:

systemctl enable sshd.service

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-11-19
  • 2022-12-23
  • 2021-07-20
  • 2021-04-25
  • 2021-05-22
猜你喜欢
  • 2022-01-05
  • 2021-07-10
  • 2022-12-23
相关资源
相似解决方案