部署LVS+Keepalived节点
安装步骤如下:
1 | ln -s /usr/src/kernels/(现有内核)/ /usr/src/linux |
下载
1 2 | wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24.tar.gz wget http://www.keepalived.org/software/keepalived-1.1.15.tar.gz |
安装与启动
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | tar zxvf ipvsadm-1.24.tar.gz cd ipvsadm-1.24 make make install cd .. tar zxvf keepalived-1.1.15.tar.gz cd keepalived-1.1.15 ./configure make make install 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/ service keepalived start |