下载: keepalived-1.1.17
tar -zxf keepalived-1.1.17.tar.gz
ln -s /usr/src/kernels/2.6.18-308.el5-x86_64 /usr/src/linux
cd keepalived-1.1.17
./configure
make
make install
之后配置规范启动[root@mode keepalived-1.1.17]# ln -s /usr/src/kernels/2.6.18-308.el5-x86_64 /usr/src/linux
ln: creating symbolic link `/usr/src/linux/2.6.18-308.el5-x86_64' to `/usr/src/kernels/2.6.18-308.el5-x86_64': File exists
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/etc/rc.d/init.d/keepalived /etc/init.d
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/
[root@mode keepalived-1.1.17]# mkdir /etc/keepalived
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/etc/keepalived/keepalived.conf /etc/keepalived
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/sbin/keepalived /usr/sbin/
[root@mode keepalived-1.1.17]# /etc/init.d/keepalived start
Starting keepalived: [ OK ]
[root@mode keepalived-1.1.17]# /etc/init.d/keepalived stop
Stopping keepalived: [ OK ]
[root@mode keepalived-1.1.17]# /etc/init.d/keepalived start
Starting keepalived: [ OK ]
[root@mode keepalived-1.1.17]# ps -ef|grep keepalive
root 6021 1 0 22:49 ? 00:00:00 keepalived -D
root 6022 6021 0 22:49 ? 00:00:00 keepalived -D
root 6023 6021 0 22:49 ? 00:00:00 keepalived -D
root 6039 3674 0 22:56 pts/0 00:00:00 grep keepalive