CentOS7版本后防火墙默认使用firewalld,因此在CentOS7中关闭防火墙使用以下命令,
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld
如果安装了iptables-service,也可以使用下面的命令,
//关闭防火墙
service iptables stop
//检查防火墙状态
service iptables status
博客个人网站:程序猿Story
CentOS7版本后防火墙默认使用firewalld,因此在CentOS7中关闭防火墙使用以下命令,
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld
如果安装了iptables-service,也可以使用下面的命令,
//关闭防火墙
service iptables stop
//检查防火墙状态
service iptables status
博客个人网站:程序猿Story