MySQL高可用性之Keepalived+MySQL(双主热备)
作者:互联网
环境说明:
操作系统 | IP地址 | hostname | 软件 |
centos 7 | 192.168.11.83 | web01 | mariadb+keepalived |
centos 7 | 192.168.11.84 | web02 | mariadb+keepalived |
准备工作:
(1)关闭两台服务器的防火墙、Selinux应用。
[root@web01 ~]# setenforce 0 [root@web01 ~]# systemctl stop firewalld [root@web02 ~]# setenforce 0 [root@web02 ~]# systemctl stop firewalld
(2)两台服务器都安装好mariadb和keepalived
[root@web01 ~]# yum -y install mariadb mariadb-server keepalived [root@web02 ~]# yum -y install mariadb mariadb-server keepalived
标签:centos,keepalived,Keepalived,双主热备,web02,web01,MySQL,mariadb,root 来源: https://www.cnblogs.com/comprehensive/p/12120959.html