haproxy 中转配置文件

@Michel  August 1, 2018

vim /etc/haproxy/haproxy.cfg

global
    ulimit-n 51200
    log /dev/log local0
    log /dev/log local1 notice
    chroot /var/lib/haproxy
    pidfile /var/run/haproxy.pid
    user haproxy
    group haproxy
    daemon
defaults
    log global
    mode tcp
    retries    3
    option    dontlognull
    option    redispatch
    timeout    connect 5s
    timeout    client 24h
    timeout    server 24h
    
frontend ss-in
    mode    tcp
    bind    0.0.0.0:8888
    default_backend ss

backend ss
    mode tcp
    option    tcp-check
    balance roundrobin
    server ss1 123.123.123.123:8888 check inter 1000

添加新评论