linux ipvsadm安装
cd /usr/src/
wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24-6.src.rpm
rpm -ivh ipvsadm-1.24-6.src.rpm #会有Header V3 DSA signature: NOKEY, key ID的警告,别理它就是了,目录它自动成不了的话就手工帮它建好
yum redhat-rpm-config rpm-build kernel-utils #这个不安就无法执行rpmbuild
cd /usr/src/redhat/SPECS
rpmbuild -bp –target=i686 kernel-2.6.spec #rpmbuild这个完了之后就会生成内核的目录
cp -a /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 /usr/src
ln -s /usr/src/linux-2.6.9 /usr/src/linux #没有ln这个目录的话下面编译会报make[1]: *** [libipvs.o] Error 1错误
wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24.tar.gz
tar zxvf ipvsadm-1.24.tar.gz
cd ipvsadmin-1.24
make && makeinstall