centos7关闭防火墙
- 查看防火墙状态
systemctl status firewalld / firewall-cmd --state
- 暂时关闭防火墙
systemctl stop firewalld
- 永久关闭防火墙(禁用开机自启) ,需要重启网卡后才生效
systemctl disable firewalld
- 重启网卡
systemctl restart network
systemctl status firewalld / firewall-cmd --state
systemctl stop firewalld
systemctl disable firewalld
systemctl restart network