centos7查看防火墻狀態(tài)及開啟關(guān)閉命令

位置:首頁 / 新聞中心 / 知識(shí)教程

知識(shí)教程 Admin 2024-02-22 17:23:00 756

CentOS7 的防火墻配置跟以前版本有很大區(qū)別,CentOS7這個(gè)版本的防火墻默認(rèn)使用的是firewall,與之前的版本使用iptables不一樣。

1、關(guān)閉防火墻:

systemctl stop firewalld.service

2、開啟防火墻:

systemctl start firewalld.service

3、關(guān)閉開機(jī)啟動(dòng):

systemctl disable firewalld.service

4、開啟開機(jī)啟動(dòng):

systemctl enable firewalld.servic


以上就是“centos7查看防火墻狀態(tài)及開啟關(guān)閉命令”的詳細(xì)內(nèi)容,更多請關(guān)注木子天禾科技其它相關(guān)文章!


以上就是“centos7查看防火墻狀態(tài)及開啟關(guān)閉命令”的詳細(xì)內(nèi)容,更多請關(guān)注木子天禾科技其它相關(guān)文章!

15934152105 掃描微信