CentOS 关闭防火墙和selinux

查看防火墙状态,并设置为开机不启动:

    查看防火墙状态:systemctl status firewalld

    CentOS 关闭防火墙和selinux

 

    停止防火墙:systemctl stop firewalld

    开机不启动:systemctl disable firewalld

     CentOS 关闭防火墙和selinux

查看selinux 状态并设置为禁用:

    查看selinux状态:grep -i ^selinux /etc/selinux/config

    设置为禁用:sed -i ‘/^SELINUX/s/enforcing/disabled/g‘ /etc/selinux/config

    CentOS 关闭防火墙和selinux

 

 

CentOS 关闭防火墙和selinux

上一篇:史上最详细的Linux网卡ifcfg-eth0配置详解


下一篇:Operating System:Linux启动过程