Keepalived+HAProxy实现读写分离discuz论坛
一、测试环境: centos 6.6;使用8台虚拟机(上图) 分别对它们设置主机名: 主机名 ip地址 软件包 node1 172.16.16.11 keepalived+haproxy node2 172.16.16.12 keepalived+haproxy php1 172.16.16.2 httpd+php+php-mysql+nfs-utils php2 172.16.16.8 httpd+php+php-mysql+nfs-utils web1 172.16.16.3 httpd web2 172.16.16.4 httpd mysql 172.16.16.5 mariadb-5.5.43-linux-x86_64.tar.gz nfs 172.16.16.252 nfs-utils 上述服务器实现的作用介绍: ①keepalived+haproxy,实现高可用和haproxy的反向代理功能并实现动静分离的效果;请求动态的内容交……