1.安装软件包:
# yum install ipvsadm
2.修改配置:
# vim /etc/default/ipvsadm
# ipvsadm
# if you want to start ipvsadm on boot set this to true
AUTO="false"
# daemon method (none|master|backup)
DAEMON="master"
# use interface (eth0,eth1...)
IFACE="eth0"
# syncid to use
SYNCID="1"
# ipvsadm --save > /etc/sysconfig/ipvsadm
启动服务:# systemctl restart ipvsadm
查看服务状态:# systemctl status ipvsadm