MySQL-MMM高可用集群搭建实战(全程可跟做!)
MMM高可用集群案例拓扑图: 环境准备: 主服务器1:192.168.18.146 db1 vip:192.168.18.250 主服务器2:192.168.18.147 db2 从服务器1:192.168.18.128 db3 vip:192.168.18.251 从服务器2:192.168.18.148 db4 vip:192.168.18.252 监控服务器:192.168.18.145 Master1: [root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo [root@localhost ~]# yum install epel-release -y [root@localhost ~]# yum clean all && yum makecache [root@localhost ~]# vim /etc/my.cnf //在行首按9dd删除9行 [mysqld] log_error=/var/lib/mysql/mysql.err log=/var/lib/mysql/mysql_log.log log_slow_queries=/var/lib/mysql_slow_queris.log binlog