这是我的配置
global
log /dev/log local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen webfarm 0.0.0.0:80
mode http
stats enable
stats uri /haproxy?stats
balance roundrobin
option httpclose
option forwardfor
server apache 192.168.1.10:8001 weight 1 maxconn 512 check
Run Code Online (Sandbox Code Playgroud)
配置后我重新启动了haproxy服务,我收到以下消息
root@d32b2eb97bf0:/# service haproxy start
* Starting haproxy haproxy [WARNING] 144/130034 (436) : parsing [/etc/haproxy/haproxy.cfg:17] : the 'contimeout' directive …Run Code Online (Sandbox Code Playgroud)