haproxy + keepalived “一键安装包”
keepalived错误 请到此处http://blog.运维网.com/attachment/201205/131528430.png
本文为 “haproxy + keepalived 一键安装包”的 第三篇
目的:帮助linux 管理员,运维人员快速部署haproxy负载均衡器,同时使用 keepalived 的为haproxy 做HA 功能!
第一篇 haproxy 安装与配置
第二篇 keepalived 安装与配置
第三篇 haproxy + keepalived 一键安装包(keepalived 为haproxy 做 HA 高可用)
第四篇 haproxy + keepalived “一键安装包”配置与测试HOWTO
1 haproxy + keepalivaed 拓扑图
http://blog.运维网.com/attachment/201112/103021292.png
2 使用方法
[*]#INSTALL 1key_install.sh for RHEL/CentOS 5.X
[*]#1key_install.sh (install haproxy and keepalived)
[*]
[*]#configure_dir: /usrl/local/keepalived/keepalived.conf ; /usr/local/haproxy/haproxy.cfg
[*]#sbin: /usr/local/sbin/keepalived.sh ; /usr/local/sbin/haproxy.sh
[*]#haproxy_check.sh: /usr/local/keepalived/haproxy_check.sh
[*]#startup: /etc/rc.local
[*]
[*]#haproxy 1
[*]#1
[*]~]# chmod 755 1key_install.sh
[*]#2
[*]~]# ./1key_install.sh
[*]Usage: ./1key_install.sh {keepalived_type backup}
[*] keepalived_type:master|backup|backup-2
[*]#3
[*]~]# ./1key_install.sh keepalived_type backup
[*]
[*]
[*]#haproxy 2
[*]#1
[*]~]# chmod 755 1key_install.sh
[*]#2
[*]~]# ./1key_install.sh
[*]Usage: ./1key_install.sh {keepalived_type backup}
[*] keepalived_type:master|backup|backup-2
[*]#3
[*]~]# ./1key_install.sh keepalived_type backup-2
3 软件包下载地址
结束
shell 脚本bug ,请反馈谢谢!
mail:dngood@sina.com
qq群: 37275208
页:
[1]