sjehzy 发表于 2010-07-30 09:43

请大家帮忙配置haproxy负载均衡mysql时报错

209/025649 (3097) : parsing haproxy.cfg : proxy 'admin_stats' has no dispatch address and is not in transparent or balance mode.

209/025649 (3097) : Errors found in configuration file, aborting.

209/025649 (3097) : Error reading configuration file : haproxy.cfg

我在配置haproxy负载均衡mysql时报上面错误,请教一下是什么原因。。

我的haproxy.cfg 的配置是:

defaults

      log   global

      mode    http

      optionhttplog

      optiondontlognull

      log 127.0.0.1 local0

      retries 3

      option redispatch

      maxconn 2000

      contimeout      5000

      clitimeout      50000

      srvtimeout      50000

listenadmin_stats 192.168.18.120:80

      mode      http

      stats uri   /dbs

      stats realm   Global\ statistics

      stats authtest:123456

listenproxy-mysql 0.0.0.0:23306

      mode tcp

      balance roundrobin

      option httpchk OPTIONS * HTTP/1.1\r\nHost:\ www

      server db01 192.168.18.117:3306 weight 1 check port 6033 inter 1s rise 2 fall 2

      server db02 192.168.18.110:3306 weight 1 check port 6033 inter 1s rise 2 fall 2

      option tcpka

文化苦旅 发表于 2010-08-02 15:04

发错地方了吧!
页: [1]
查看完整版本: 请大家帮忙配置haproxy负载均衡mysql时报错