1、三台物理机ip
ip |
name |
192.168.0.106 |
master |
192.168.0.132 |
node1 |
192.168.0.146 |
node2 |
2、所有节点进行如下准备
#分别更改hostname
hostnamectl set-hostname master
#添加域名解析
cat <<EOF >>/etc/hosts
192.168.0.106 master
192.168.0.132 node1
192168.0.146 node2
EOF
#关闭swap
swapoff -a
#配置国内apt源, 以下为阿里源,将 /etc/apt/sources.list 中内容替换如下
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://