FXMAR 发表于 2015-11-20 10:15:18

linux下haproxy1.5.11配置文件

  #haproxy版本 1.5.11
  #配置文件
  global
      log 127.0.0.1   local3 notice
      maxconn 4096
      #chroot /usr/share/haproxy
      uid 0
      gid 0
      daemon
      #debug
      #quiet

defaults
      log   global
      mode    tcp   
      optiontcplog
      optiondontlognull
      retries 3
      maxconn 2000
      option redispatch
      timeout connect 5000
      timeout client 50000
      timeout server 50000


#stats   uri    /haproxy
#statsauth    test:test   #设置监控页面的用户和密码:test

listenserver_haproxy
bind    192.168.3.24:19000
balance roundrobin
mode tcp
server server_01 192.168.3.4:19000weight 3 check
server server_02 192.168.3.247:19000weight 3 check

  
页: [1]
查看完整版本: linux下haproxy1.5.11配置文件