使用docker搭建MySQL双主备 + keepalived一、MySQL配置双主备二、安装keepalived
使用docker搭建MySQL双主备 + keepalived一、MySQL配置双主备修改my.cnf配置之后,启动启动mysqlMySQL1配置MySQL2配置二、安装keepalived1、MySQL1安装keepalived2、MySQL2安装keepalivedCentOS7下配置防火墙放过Keepalived关闭Centos7 关闭SELINUX一级目录一级目录二级目录三级目录一、MySQL配置双主备双主备,其实就是做两个机器的互相主从,既是Master又是Slave,如下图所示:VM