常用命令
查看状态
ipvsadm -L -n
ipvsadm -L -n --stats
增加virtual server
ipvsadm -A -t 192.168.59.110:80
增加real server
ipvsadm -a -t 192.168.59.110:80 -r 192.168.59.248:80 -g
删除real server
ipvsadm -d -t 192.168.59.110:80 -r 192.168.59.248:80
查看状态
ipvsadm -L -n
ipvsadm -L -n --stats
增加virtual server
ipvsadm -A -t 192.168.59.110:80
增加real server
ipvsadm -a -t 192.168.59.110:80 -r 192.168.59.248:80 -g
删除real server
ipvsadm -d -t 192.168.59.110:80 -r 192.168.59.248:80