Fedora关闭/禁用SELinux三种方法
SELINUX=disable 禁用SeLinux
SELINUX=enforcing 使用SeLinux
查看/关闭/开启 防火墙的设置
1)重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off 或者 /sbin/chkconfig --level 2345 iptables off
2) 即时生效,重启后失效
service 方式
开启: service iptables start
关闭: service iptables stop
iptables方式
查看防火墙状态:
/etc/init.d/iptables status
暂时关闭防火墙:
/etc/init.d/iptables stop
重启iptables:
/etc/init.d/iptables restart
1.在安装Fedora时选择开启或者关闭SeLinux
setenforce 0
3.禁用SELinux。
在 /etc 下可以看到一个sellinux文件夹,进入后,里面有个config文件,在终端进入到文件夹,输入vi config ;修改SELINUX的值
SELINUX=disable 禁用SeLinux
SELINUX=enforcing 使用SeLinux
查看/关闭/开启 防火墙的设置
1)重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off 或者 /sbin/chkconfig --level 2345 iptables off
2) 即时生效,重启后失效
service 方式
开启: service iptables start
关闭: service iptables stop
iptables方式
查看防火墙状态:
/etc/init.d/iptables status
暂时关闭防火墙:
/etc/init.d/iptables stop
重启iptables:
/etc/init.d/iptables restart