keepalived错误 请到此处
本文为 “haproxy + keepalived 一键安装包” 的 第三篇
目的:帮助linux 管理员,运维人员快速部署haproxy负载均衡器,同时使用 keepalived 的为haproxy 做HA 功能!
第三篇 haproxy + keepalived 一键安装包(keepalived 为haproxy 做 HA 高可用)
第四篇 haproxy + keepalived “一键安装包” 配置与测试HOWTO
1 haproxy + keepalivaed 拓扑图
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
本文转自 dongnan 51CTO博客,原文链接:http://blog.51cto.com/dngood/751051