码迷,mamicode.com
首页 > 系统相关 > 详细

关闭linux的防火墙

时间:2019-01-04 21:32:17      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:tables   code   关闭   roo   enforce   pre   lin   conf   div   

有两道防火墙

第一道

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

 

关闭linux的防火墙

标签:tables   code   关闭   roo   enforce   pre   lin   conf   div   

原文地址:https://www.cnblogs.com/zhaijihai/p/10222158.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!