linux机器集群多机初化-aoao多机-aoao集群
基础配置
三台环境为centos7.9,以下配置需要在每台机器上执行
配置hosts解析
cat >> /etc/hosts <<EOF
192.168.2.23 aoaoserver1
192.168.2.24 aoaoserver2
192.168.2.25 aoaoserver3
EOF
sh
关闭防火墙和selinux
systemctl stop firewalld && systemctl disable firewalld
setenforce 0 && sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
sh
分别在三个节点设置主机名
hostnamectl set-hostname node1
hostnamectl set-hostname node2
hostnamectl set-hostname node3
sh
配置主机时间同步
systemctl restart chronyd.service && systemctl enable chronyd.service
sh
配置免密登录
ssh-keygen
ssh-copy-id -i .ssh/id_rsa.pub aoaoserver1
ssh-copy-id -i .ssh/id_rsa.pub aoaoserver2
ssh-copy-id -i .ssh/id_rsa.pub aoaoserver3