关闭防火墙通常用这两个命令就可以了
systemctl stop firewalld
systemctl disable firewalld.service
如果上面两个命令执行之后没有报错,输入下面这个命令
systemctl status firewalld
这个命令是查看防火墙是否活跃的,如果为dead就证明关了,
关了之后,可以使用下面这个命令,如果你没有使用iptables的话,就不用执行,执行也会报没有iptables的错误
chkconfig iptables off
执行完了之后,执行下面这个命令,重新启动虚拟机就欧克了
reboot