关闭linux的防火墙

有两道防火墙

第一道

iptables -L
iptables -F
systemctl disable firewalld

第二道

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

设置在开机时就关闭

vim /etc/selinux/config 

将文件的SELINUX的值改为0
SELINUX=0

猜你喜欢

转载自www.cnblogs.com/zhaijihai/p/10222158.html