规划 IP Hostname 配置 系统 192.168.0.11 master1 4c8g Centos7.6 192.168.0.12 node1 4c8g Centos7.6 192.168.0.13 node2 4c8g Centos7.6 hosts 文件 cat /etc/hosts 192.168.0.11 master1 192.168.0.12 node1 192.168.0.13 node2 关闭防火墙及 selinux systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i s#enforcing#disabled#g /etc/selinux/config 加载内核模块 #由于开启内核 ipv4 转发需要加载