CentOS6.x防火墙关闭和selinux
CentOS6.x防火墙关闭和selinux
关闭防火墙
防火墙临时关闭:iptables –F
查看防火墙状态:iptables -L
防火墙永久关闭:/etc/init.d/iptables stop
service iptables stop
关闭selinux
selinux临时关闭:setenforce 0
selinux永久关闭:sed –i“7s/enforcing/disabled/g”/etc/selinux/config
查看selinux状态:getenforce 0