1. 程式人生 > >關閉linux的防火牆

關閉linux的防火牆

有兩道防火牆

第一道

iptables -L
iptables -F
systemctl disable firewalld

第二道

[[email protected] ~]# getenforce 
Enforcing
[root@python3 ~]# setenforce 0
[[email protected] ~]# getenforce

設定在開機時就關閉

vim /etc/selinux/config 

將檔案的SELINUX的值改為0
SELINUX=0