千万个美丽的未来,抵不上一个温暖的现在,每一个真实的现在,都是我们曾经幻想的未来!
Dec
11
mkdir /home/software
cd /home/software/
wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.26.tar.gz
使用uname -r查看自己的内核版本:
[root@vpsback software]# uname -r
2.6.32-358.23.2.el6.x86_64
然后
yum install -y kernel-devel-2.6.32-358.23.2.el6.x86_64
ln -s /usr/src/kernels/2.6.32-358.23.2.el6.x86_64/ /usr/src/linux
yum -y install popt popt-devel libnl libnl-devel popt-static
编译ipvsadm
tar xzvf ipvsadm-1.26.tar.gz
cd ipvsadm-1.26
make
make install
查看版本
[root@vpsback ipvsadm-1.26]# ipvsadm --version
ipvsadm v1.26 2008/5/15 (compiled with popt and IPVS v1.2.1)
[root@vpsback ipvsadm-1.26]# ipvsadm -ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
cd /home/software/
wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.26.tar.gz
使用uname -r查看自己的内核版本:
[root@vpsback software]# uname -r
2.6.32-358.23.2.el6.x86_64
然后
yum install -y kernel-devel-2.6.32-358.23.2.el6.x86_64
ln -s /usr/src/kernels/2.6.32-358.23.2.el6.x86_64/ /usr/src/linux
yum -y install popt popt-devel libnl libnl-devel popt-static
编译ipvsadm
tar xzvf ipvsadm-1.26.tar.gz
cd ipvsadm-1.26
make
make install
查看版本
[root@vpsback ipvsadm-1.26]# ipvsadm --version
ipvsadm v1.26 2008/5/15 (compiled with popt and IPVS v1.2.1)
[root@vpsback ipvsadm-1.26]# ipvsadm -ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn