本来应该打开防火墙查看状态:(以下几条命令)
查看防火墙状态:Service iptables status
关闭防火墙:service iptables stop
关闭防火墙自启:chkconfig iptables off
检查是否关闭成功:chkconfig iptables –list
在我操作过程中:
发现打不开防火墙状态
Unit iptables.service could not be found.
提示我命令是旧版的,新版的是
systemctl status iptables.service
输入以后出现:
告诉我防火墙没有
于是
下载检查安装包yum install -y iptables
启动安装包 yum install iptables-services
查看防火墙状态service iptables status
完成