ubantu 14 关闭防火墙 SELinux
2018/10
30
16:10
1、关闭ubuntu的防火墙
ufw disable
开启防火墙
ufw enable
ufw disable
开启防火墙
ufw enable
2、卸载了iptables
apt-get remove iptables
3、关闭ubuntu中的防火墙的其余命令
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
查看SELinux状态:
4、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态
SELinux status: enabled
5、getenforce ##也可以用这个命令检查
关闭SELinux:
6、临时关闭(不用重启机器):
setenforce 0 ##设置SELinux 成为permissive模式
##setenforce 1 设置SELinux 成为enforcing模式
7、修改配置文件需要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
http://blog.csdn.net/hellochenlian/article/details/37535531
http://bguncle.blog.51cto.com/3184079/957315/
--转载请注明: http://91o.cc/ubantu-14-%e5%85%b3%e9%97%ad%e9%98%b2%e7%81%ab%e5%a2%99-selinux/
发表回复