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

所有文章仅为作为自己笔记,方便查阅.
原文地址:https://www.cnblogs.com/guns/p/13895896.html