CentOs 重启ssh服务的命令如下:

# service sshd restart

出现:Redirecting to /bin/systemctl restart sshd.service

 以下转自:Redirecting to /bin/systemctl restart sshd.service
 

查看状态:

systemctl status sshd.service

看到上述信息就可以确定是启动了。

启动服务:

systemctl start sshd.service

重启服务:

systemctl restart sshd.service

开机自启:

systemctl enable sshd.service

查看firewall服务状态

systemctl status firewalld

防火墙未开

centos出现“FirewallD is not running”

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐