2016-04-11 6 views
1

ich folgende ha-Proxy-Konfiguration vorgenommen haben, und haben die folgende Fehlermeldung empfangen, während HAProxy Neustart:Kann nicht binden Buchse [0.0.0.0:443] für HAProxy

HAProxy Config

global 
     log /dev/log local0 
     log /dev/log local1 notice 
     chroot /var/lib/haproxy 
     user haproxy 
     group haproxy 
     daemon 

defaults 
     log  global 
     mode tcp 
     option tcplog 
     option dontlognull 
     retries 3 
     timeout client 3h 
     timeout server 3h 
     timeout connect 5000 


frontend fe_websockets 
     bind 0.0.0.0:443 ssl crt /home/test/Documents/test3.pem 
     mode tcp 
     log global 
     option tcplog 
     timeout client 3600s 
     backlog 4096 
     maxconn 50000 
     default_backend be_nywebsockets 

backend be_nywebsockets 
     mode tcp 
     option log-health-checks 
     option redispatch 
     option tcplog 
     balance roundrobin 
     server web1 localhost:8443 check 
     # server web2 localhost:8081 check 
     timeout connect 1s 
     timeout queue 5s 
     timeout server 3600s 

Warum HAProxy erlaubt es nicht, 443 an einen Serverport zu binden? Ich habe die in den folgenden Link angegeben Konfiguration gefolgt: https://gist.github.com/allanparsons/6076098 [ALERT] 101/231920 (8356): Frontend fe_websockets Beginn: nicht Buchse binden [0.0.0.0:443]

Antwort

1

Höchstwahrscheinlich Port 443 bereits im Einsatz von einem anderen Prozess. Überprüfen Sie mit netstat, wenn Sie bereits Prozesse in der Haproxy-Box gebunden haben.