我是靠谱客的博主 火星上小蜜蜂,这篇文章主要介绍CentOS 6.x和7.x防火墙关闭和状态查看,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(128)

评论列表共有 0 条评论

立即
投稿
返回
顶部