1、检查sshd是否正常启动
systemctl status sshd
2、检查是否是防火墙的原因
systemctl status firewalld
3、如果不是这两者,但还报错,查看网卡信息:
cd /etc/sysconfig/network-scripts/
查看对应的网卡信息
vim ifcfg-eno1
执行操作:
systemctl restart network systemctl status network
若出现Failed to start LSB: Bring up/down networking的问题,或network启动状态不对的问题:
执行操作:
ifdown eno1 && ifup eno1
再次查看network状态:
systemctl restart networksystemctl status network
注意:有可能network服务和NetworkManager冲突了,可关闭NetworkManager服务:
systemctl stop NetworkManagersystemctl disable NetworkManager
若出现以下情况,酌情处理: