CentOS7查看和关闭防火墙

在搭建Kubernetes环境的时候报了一个错误,顺便温习一下防火墙的知识。

查看防火墙状态

[parallels@CentOS7-Node1 Workspace]$ sudo firewall-cmd --state
running  

停止防火墙

[parallels@CentOS7-Node1 Workspace]$ sudo systemctl stop firewalld.service 
[sudo] password for parallels: 
[parallels@CentOS7-Node1 Workspace]$ sudo firewall-cmd --state
not running  

禁止firewall开机启动

systemctl disable firewalld.service