CentOS7版本后防火墙默认使用firewalld,因此在CentOS7中关闭防火墙使用以下命令,
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld
如果安装了iptables-service,也可以使用下面的命令,
//关闭防火墙
service iptables stop
//检查防火墙状态
service iptables status
博客个人网站:程序猿Story
本文介绍如何在CentOS7系统中进行防火墙的基本操作,包括临时关闭、禁止开机启动以及状态检查等命令。同时也提供了针对安装了iptables-service的情况下的相应命令。
CentOS7版本后防火墙默认使用firewalld,因此在CentOS7中关闭防火墙使用以下命令,
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld
如果安装了iptables-service,也可以使用下面的命令,
//关闭防火墙
service iptables stop
//检查防火墙状态
service iptables status
博客个人网站:程序猿Story
7246

被折叠的 条评论
为什么被折叠?