标签:comment 三台 mysql 系统 inux domain lin main hosts
环境检查
[root@db01 bin]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@db01 bin]# uname -r
3.10.0-862.el7.x86_64
[root@db01 bin]# hostname -I
10.0.0.51 172.16.1.51
mha环境准备
(准备三个节点,三台主机,分别修改如下的ip)
系统配置
hostnamectl set-hostname db01
nmcli connection modify eth0 ipv4.addresses 10.0.0.51/24
nmcli connection modify eth1 ipv4.addresses 172.16.1.53/24
nmcli connection down eth1 && nmcli connection up eth1
nmcli connection down eth0 && nmcli connection up eth0
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.51 db01
10.0.0.52 db02
10.0.0.53 db03
标签:comment 三台 mysql 系统 inux domain lin main hosts
原文地址:https://www.cnblogs.com/tim1blog/p/9872428.html