CentOS 7.0默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
参考链接
https://blog.youkuaiyun.com/ytangdigl/article/details/79796961
本文介绍了在CentOS7.0中如何查看firewall的状态,以及如何停止和禁止firewall在系统启动时自动运行。通过执行'firewall-cmd --state'可以查看防火墙状态,使用'systemctl stop firewalld.service'命令可停止firewall,而'systemctl disable firewalld.service'则能阻止firewall在开机时启动。详细步骤见原文链接。
CentOS 7.0默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
参考链接
https://blog.youkuaiyun.com/ytangdigl/article/details/79796961
2764
6301

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