无法为 HAproxy 绑定套接字 [0.0.0.0:443]
Cannot bind socket [0.0.0.0:443] for HAproxy
我进行了以下 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 绑定到某些服务器端口?
我已按照以下link中指定的配置进行操作:
https://gist.github.com/allanparsons/6076098
[警报] 101/231920 (8356):启动前端 fe_websockets:无法绑定套接字 [0.0.0.0:443]
很有可能,端口 443 已被另一个进程占用。使用 netstat
检查 haproxy 框中的现有进程是否已绑定到它。
我进行了以下 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 绑定到某些服务器端口? 我已按照以下link中指定的配置进行操作: https://gist.github.com/allanparsons/6076098 [警报] 101/231920 (8356):启动前端 fe_websockets:无法绑定套接字 [0.0.0.0:443]
很有可能,端口 443 已被另一个进程占用。使用 netstat
检查 haproxy 框中的现有进程是否已绑定到它。