1.yum -y install ipvsadm
2.创建虚拟服务器 ipvsadm -A -t 192.168.4.5:80 -s wrr
3.创建真实服务器 ipvsadm -a -t 192.168.4.5:80 -r 103.229.213.251
ipvsadm -a -t 192.168.4.5:80 -r 163.53.170.121 -m
ipvsadm -E -t 92.168.4.5:80 -s lc
ipvsadm -e -t 192.168.4.5:80 -s lc
ipvsadm -a -t 192.168.4.5:80 -r 163.53.170.121 -m -w 2
ipvsadm -d -t 192.168.4.5:80 -r 163.53.170.121
ipvsadm -D -t 192.168.4.5:80