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
  • 相关阅读:
    本地YUM源制作
    VMware虚拟机三种联网方法及原理
    虚拟机安装centos
    Tomcat服务时区设置
    Tomcat的HTTPS配置及HTTP自动跳转配置
    应用程序下载地址汇总
    Centos 7 iptables配置
    JAVA 线程状态
    LeetCode Summary Ranges
    LeetCode Basic Calculator II
  • 原文地址:https://www.cnblogs.com/Lovis/p/12950971.html
Copyright © 2011-2022 走看看