一、背景描述:
在node1上面防火墙是正常的关闭状态
在node2上面防火墙是异常状态,报错
在node3上面的防火墙是正常的关闭状态
二、状态信息演示
[root@node1 ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@node1 ~]#
[root@node3 ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@node3 ~]#
当我在查看node2防火墙的状态的时候出现下面问题报错:
[root@node2 test]# systemstl status wirewalld
-bash: systemstl: command not found
[root@node2 test]# systemctl status wirewalld
Unit wirewalld.service could not be found.
[root@node2 test]# systemctl status wirewalld
Unit wirewalld.service could not be found.
[root@node2 test]# systemctl status wirewalld
Unit wirewalld.service could not be found.
[root@node2 test]#
三、node2防火墙的异常报错的解决
1.报错:Unit wirewalld.service could not be found.
意思:说明防火墙没有安装,需要安装!
2.其实在这里原因不是防火墙没有安装是,是查看防火墙的命令写错了firewalld写错了,但是报错显示成防火墙没有安装
3.哈哈!疏忽大意涨涨经验!