关闭防火墙与SELinux

  1. 在所有节点上关闭防火墙。

    1
    systemctl stop firewalld.service && systemctl disable firewalld.service
    

  2. 在所有节点关闭SELinux。

    1
    setenforce 0
    

    该操作为临时关闭SELinux,若需永久关闭,请修改配置文件“/etc/selinux/config”,配置“SELINUX=disabled”。