mysql-HA keepalive配置安装全自动切换主从关系
mysql A和B互为主从;C为A的Slave数据库;
A:192.168.133.108 B:192.168.133.109 C: 192.168.133.241
VIP:192.168.133.111
mysql互为主备的配置,如上,比较简单,在此不再重复。
1、从master A 192.168.133.108服务器安装keepalived开始:
网上下载:keepalived-1.2.2.tar.gz
[root@rac1 ~]# tar zxvf keepalived-1.2.2.tar.gz
[root@rac1 ~]# cd keepalived-1.2.2
[root@rac1 ~]#./configure --with-kernel-dir=/usr/src/kernels/2.6.18-164.el5-x86_64/
。。。。。。
Keepalived configuration
------------------------
Keepalived version : 1.2.2
Compiler : gcc
Compiler flags : -g -O2 -DETHERTYPE_IPV6=0x86dd
Extra Lib : -lpopt -lssl -lcrypto
Use IPVS Framework : Yes
IPVS sync daemon support : Yes
IPVS use libnl : No
Use VRRP Framework : Yes
Use Debug flags : No
[root@rac1 ~]#make && make install
/usr/src/kernels/2.6.18-164.el5-x86_64/include/linux/types.h:142: é”?èˉˉ???a
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/88305/viewspace-723401/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/88305/viewspace-723401/