zoukankan      html  css  js  c++  java
  • 1.3 防火墙关闭

    关闭防火墙并设置开机暂不启动   ,  用于初学阶段

     systemctl status firewalld.service # 查看firewalld状态

    systemctl stop firewalld  #关闭
    systemctl start firewalld  #开启
    systemctl  disable firewalld   #  开机自动关闭
    chkconfig --list | grep network   #查看开机是否启动
    systemctl  enable firewalld  # 开机自动启动


    临时和永久关闭Selinux
    安全增强型 Linux(Security-Enhanced Linux)简称 SELinux,它是一个 Linux 内 核模块,也是 Linux 的一个安全子系统。 现在初学先关掉,不然很多服务都需要配置才能跑起来。
    SELinux有三个状态:
    enforcing:强制模式,代表 SELinux 运作中,且已经正确的开始限制;
    permissive:宽容模式:代表 SELinux 运作中,不过仅会有警告讯息并不会实际限制
    disabled:关闭,SELinux 并没有实际运作。
    临时关闭
    # getenforce //查看状态
    Enforcing
    # setenforce 0 //临时关闭
    永久关闭
    # vi /etc/selinux/config
    把7行 SELINUX=enforcing 改:SELINUX=disabled
    这个服务是linux内核的一部分,要生效必须重启# reboot
  • 相关阅读:
    私有 composer 包创建
    随机数是如何生成的
    TCP 三次握手的意义
    何为真何为假
    Python流程控制语句详解
    Python类中装饰器classmethod,staticmethod,property,
    函数进阶
    初识函数
    文件操作
    is ==小数据池编码解码
  • 原文地址:https://www.cnblogs.com/Lovis/p/12950971.html
Copyright © 2011-2022 走看看