Centos7 基础知识---------sshd相关服务 查 启 停

Centos 7 基础知识---------sshd相关服务 查 启 停 

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

systemctl 动作 服务名.service

1. 查看sshd服务是否启动

systemctl status sshd.service

2.启动sshd服务

systemctl start sshd.service

3. 重启sshd服务

systemctl restart sshd.service

4. 设置为开机启动

systemctl enable sshd.service

posted on 2020-10-29 11:40  调皮小蚊子  阅读(138)  评论(0编辑  收藏  举报