1. 查看防火墙状态
systemctl status firewalld.service
出现绿色的active,说明防火墙开启
2. 关闭防火墙
systemctl stop firewalld.service
3. 关闭防火墙开机自启
systemctl disable firewalld.service
重启虚拟机后,查看防火墙状态,发现变成inactive,防火墙已关闭
1. 查看防火墙状态
systemctl status firewalld.service
出现绿色的active,说明防火墙开启
2. 关闭防火墙
systemctl stop firewalld.service
3. 关闭防火墙开机自启
systemctl disable firewalld.service
重启虚拟机后,查看防火墙状态,发现变成inactive,防火墙已关闭