【问题标题】:Cannot bind socket [0.0.0.0:443] for HAproxy无法为 HAproxy 绑定套接字 [0.0.0.0:443]
【发布时间】:2016-04-11 17:58:04
【问题描述】:

我进行了以下 ha-proxy 配置,并在 HAProxy 重启时收到以下错误:

HAproxy 配置

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

为什么 HAProxy 不允许将 443 绑定到某些服务器端口? 我遵循了以下链接中指定的配置: https://gist.github.com/allanparsons/6076098 [警报] 101/231920 (8356):启动前端 fe_websockets:无法绑定套接字 [0.0.0.0:443]

【问题讨论】:

    标签: ssl websocket load-balancing haproxy


    【解决方案1】:

    很可能,端口 443 已被另一个进程使用。使用 netstat 检查是否已经绑定了 haproxy 框中的现有进程。

    【讨论】:

      猜你喜欢
      • 2016-04-20
      • 1970-01-01
      • 2015-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-25
      • 1970-01-01
      • 2021-11-16
      相关资源
      最近更新 更多