打开配置文件 [root@haproxy20 ~]# vim /etc/haproxy/haproxy.cfg 加入cookie insert cookie SERVERID insert indirect nocache 使用浏览器测试