本篇介绍如何在 CentOS 系统中怎样启动sshd服务,如何开机自启
命令概况
CentOS < 7.x
1 | service command # 使用service命令做start|stop|restart sshd |
CentOS >= 7.x
1 | systemctl command # 管理 start|stop|start 自启sshd |
CentOS < 7.x
chkconfig
1 | $ chkconfig sshd on # 开机自启sshd |
service
1 | $ service sshd start | stop | restart |
CentOS >= 7.x
1 | $ systemctl enable sshd.service # 开机自启sshd |
