keepalived参照文章
keepalived参考文章
keepalived 实现热备
http://i-david.iteye.com/blog/1684342
仅有操作的脚本,无详细解释。可以参考脚本。
keepalived实现双机热备
http://sjsky.iteye.com/blog/1156403
以一个web服务器为例,讲述了主机(3层,ICMP层)、脚本(5层,应用层)的检测方法。
并描述了注意事项。
Keepalived: 运行在 LVS 之上的故障转移负载均衡器
http://sjsky.iteye.com/blog/1156403
给出了一些keepalived的参考文件。
源码安装keepalived
将文件从“安装位置”复制到“目标位置”:
创建目录:
将配置文件复制到/etc/keepalived目前下,如下所示:
启动keepalived:
查看运行状态:
keepalived 实现热备
http://i-david.iteye.com/blog/1684342
仅有操作的脚本,无详细解释。可以参考脚本。
keepalived实现双机热备
http://sjsky.iteye.com/blog/1156403
以一个web服务器为例,讲述了主机(3层,ICMP层)、脚本(5层,应用层)的检测方法。
并描述了注意事项。
Keepalived: 运行在 LVS 之上的故障转移负载均衡器
http://sjsky.iteye.com/blog/1156403
给出了一些keepalived的参考文件。
源码安装keepalived
cd /tmp tar xzvf keepalived-1.2.7.tar.gz cd keepalived-1.2.7 ./configure make make install
安装位置 | 目标位置 | 说明 |
/usr/local/sbin/keepalived | /sbin/keepalived | 主程序 |
/usr/local/etc/sysconfig/keepalived | /etc/sysconfig/keepalived | 选项配置文件 |
/usr/local/etc/rc.d/init.d/keepalived | /etc/rc.d/init.d/keepalived | 服务调用脚本文件 |
将文件从“安装位置”复制到“目标位置”:
cp /usr/local/sbin/keepalived /sbin/keepalived cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/keepalived cp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/keepalived
创建目录:
mkdir /etc/keepalived/
将配置文件复制到/etc/keepalived目前下,如下所示:
[root@VM-CHENGANG296 keepalived]# pwd /etc/keepalived [root@VM-CHENGANG296 keepalived]# ls -l total 12 -rwxr-xr-x 1 root root 104 Apr 1 22:42 arp.sh -rw-r--r-- 1 root root 629 Apr 1 22:40 keepalived.conf -rwxr-xr-x 1 root root 578 Apr 1 23:06 mysql.sh
启动keepalived:
service keepalived start
查看运行状态:
ip a l tail /var/log/messages