• CentOS 7 关闭防火墙和SELinux


    [修改机器名]

    # vi /etc/hostname

    [关SELinux]

    # vi /etc/selinux/config
    设置SELINUX=disabled

    [关防火墙]

    # systemctl stop firewalld
    # systemctl disable firewalld
    # systemctl status firewalld 看状态
    firewalld.service - firewalld - dynamic firewall daemon
    Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
    Active: inactive (dead)

    Sep 01 16:43:44 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
    Sep 01 16:43:47 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
    Sep 01 16:50:56 k8s-node1 systemd[1]: Stopping firewalld - dynamic firewall daemon...
    Sep 01 16:50:57 k8s-node1 systemd[1]: Stopped firewalld - dynamic firewall daemon.

    设置完成后重启

    # reboot

  • 相关阅读:
    构造方法
    构造方法的重载
    封装的使用及演示代码
    static的用法及作用
    javaWeb链接数据库进行增删改查
    java面向对象接口小结
    多线程总结
    mysql数据查询
    mysql条件查询
    mysql查询数据
  • 原文地址:https://www.cnblogs.com/highend/p/centos7_disable_firewall_and_selinux.html
Copyright © 2020-2023  润新知