Fedora下关闭防火墙

来源:互联网 发布:手机图片分类软件 编辑:程序博客网 时间:2024/05/21 13:22

1. 关闭selinux

参考:http://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Enabling_and_Disabling_SELinux-Disabling_SELinux.html

修改/etc/selinux/config文件中的SELINUX="" 为 disabled,然后重启。

setup 关闭防火墙

-->无效

setenforce 0

-->临时有效

2. Fedora 19下面关闭selinux,或者执行chkconfig iptables off,都没有关闭iptables,需要执行:

sudo systemctl stop firewalld.service (停止服务)

sudo systemctl disable firewalld.service (停止开机自启动服务)