haproxy_tcp 转发配置

global
ulimit-n  51200

defaults
log global
mode    tcp
option  dontlognull
timeout connect 1000ms
timeout client 150000ms
timeout server 150000ms

frontend 8080-in
bind *:8080
default_backend 8080-out

backend 8080-out
server server1 202.5.16.211:8080 maxconn 20480

#frontend 8080-in
#bind *:8080
#default_backend 8080-out

#backend 8080-out
#server server1 45.78.21.59:8080 maxconn 20480

#vi /etc/haproxy/haproxy.cfg
huan

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: