CentOS 6
防火墙使用iptables
查看防火墙状态
service iptables status
停止防火墙服务
service iptables stop
禁止防火墙开机启动
chkconfig iptables off
CentOS 7
防火墙默认使用firewalld,它仅仅是替代了 iptables service 部分,其底层还是使用 iptables 作为防火墙规则管理入口
查看防火墙状态
firewall-cmd --state
停止防火墙服务
systemctl stop firewalld.service
禁止防火墙开机启动
systemctl disable firewalld.service
最后
以上就是火星上小蜜蜂最近收集整理的关于CentOS 6.x和7.x防火墙关闭和状态查看的全部内容,更多相关CentOS内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复