19
01/18
nginx+keepalive负载均衡高可用
nginx搭建负载均衡详见: 这里不细说。下面说明一下怎么用keepalive实现Nginx高可用。 1、准备 两台浮在均衡服务器: 192.168.31.213 192.168.31.246 准备VIP(虚拟IP):192.168.31.31 2、为两台均衡服务器安装keepalive 准备依赖包: yum -y install gcc pcre-devel zlib-devel openssl-devel yum -y install popt-devel 下载 wget http://www.keepalived.org/software/keepalived-1.2.7.tar.gz 安装keepalive tar zxvf keepalived-1.2.7.tar.gz cd keepalived-1.2.7 ./configure make make instal...