一、使用 System V init 作为初始化系统的 Linux(例如:CentOS 6.x) 关闭防火墙的命令:
chkconfig iptables off
或
service iptables stop
二、使用 systemd 作为初始化系统的 Linux(例如:CentOS 7.x)关闭防火墙的命令:
systemctl disable firewalld.service
或
systemctl stop firewalld.service
一、使用 System V init 作为初始化系统的 Linux(例如:CentOS 6.x) 关闭防火墙的命令:
chkconfig iptables off
或
service iptables stop
二、使用 systemd 作为初始化系统的 Linux(例如:CentOS 7.x)关闭防火墙的命令:
systemctl disable firewalld.service
或
systemctl stop firewalld.service
微信扫码登录