编辑haproxy.cfg 加上下面参数 listen admin_stats stats enable bind *:8080 //监听的ip端口号 mode http //开关 option httplog log global maxconn 10 stats refresh 30s //统计页面自动刷新时间 stats uri /admin //访问的uri ip:8080/admin stats realm haproxy stats auth admin:ad