Keepalived+Haproxy实现高可用负载均衡
高可用负载(主备节点)部署步骤 完成下图一个简单的高可用负载机制: 1.拷贝keepalived-1.2.19.tar.gz至Linux的/home目录(也可以是其它目录) 2.解压并安装keepalived: tar -zxvf keepalived-1.2.19.tar.gz yum install popt-devel yum -y install openssl-devel cd keepalived-1.2.19 ./configure make && make install 这样keepalived编译及安装完成! 3.拷贝并复制keepalived: cp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/ cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/ mkdir /etc/keepalived cp /usr/local/etc/keepalived/keepalived.conf /etc/keepalived/ cp /usr/local/sbin/keepalived /usr/sbin/ 上传并覆盖keepalived.conf至/etc/keepalived 备注:keepalived.conf详见步骤4 上传check