CentOs 重启ssh服务的命令如下:
# service sshd restart
不过上面的这个命令在于7以及以上的系统已经不再适用,在阿里云等云服务器中,CentOS 7 下重启服务不再通过 service 操作,而是通过 systemctl 操作,具体的操作命令如下:
查看状态:
systemctl status sshd.service
启动服务:
systemctl start sshd.service
重启服务:
systemctl restart sshd.service
开机自启:
systemctl enable sshd.service
推荐站内搜索:网站ip地址查询、免备案空间、ip代理地址、6元一年的云服务器、美国免费虚拟主机、asp免费空间申请、icp备案、ip在线查询、电信服务器租赁、免费http代理ip、