centos7 与centos6 在重启 启动 自启动等方面命令有些许的变化。
centos7 查看状态:
systemctl status sshd.service
启动服务:
systemctl start sshd.service
重启服务:
systemctl restart sshd.service
开机自启:
systemctl enable sshd.service
允许随意转载;但,请点赞!点赞-NMBHOST:NMB HOST » centos7系统 对SSH/SSHD服务(查看/启动/重启/自启)