CentOS7
——————————————————————————————————————————
关闭firewall
[root@localhost ~]# systemctl stop firewalld //停止firewall
[root@localhost ~]# systemctl disable firewalld //禁止firewall开机启动
[root@localhost ~]# systemctl status firewalld //查看防火墙状态
绿色部分可以看出当前防火墙的状态是开启的
关闭防火墙之后结果: