另一方面,关闭CentOS 6防火墙命令//暂时关闭防火墙服务iptables stop///禁止开机启动防火墙chkconfig iptables off
二、CentOS 7关闭防火墙命令CentOS 7和CentOS 6关闭防火墙命令差异很大。 具体如下。
1.CentOS 7使用systemctl运行命令,CentOS 6使用service运行命令。
2.CentOS 6正在使用iptables。 CentOS 7使用的是防火墙d而不是iptables
在CentOS7中使用相同的命令将报告错误。
# systemctl stop iptables
failedtostopiptables.service : unit iptables.servicenotloaded。
关闭CentOS 7防火墙的命令如下:
//防火墙systemctl stop firewalld//禁止开机启动防火墙systemctl disable firewalld