如果ls /usr/src/kernels/为空:

yum install kernel-devel

[root@nagios_server ~]# ls /usr/src/kernels/

2.6.32-696.6.3.el6.x86_64

 ln -s /usr/src/kernels/2.6.32-696.6.3.el6.x86_64/ /usr/src/linux 

cd  /root/tool


wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.26.tar.gz

yum install libnl* popt* -y

tar zvf ipvsadm-1.26

cd ipvsadm-1.26

make 

make install

/sbin/ipvsadm

lsmod | grep ip_vs