1. 程式人生 > >CentOS 7.2 關閉防火墻

CentOS 7.2 關閉防火墻

img div apt wall systemctl contain gin nsh mat

CentOS7 的防火墻配置跟以前版本有很大區別,CentOS7這個版本的防火墻默認使用的是firewall,與之前的版本使用iptables不一樣

1、關閉防火墻:

systemctl stop firewalld.service

技術分享圖片

2、開啟防火墻:

systemctl start firewalld.service

技術分享圖片

3、關閉開機啟動:

systemctl disable firewalld.service

技術分享圖片

4、開啟開機啟動:

systemctl enable firewalld.service

技術分享圖片

CentOS 7.2 關閉防火墻