gpt4 book ai didi

linux - Haproxy 健康检查权限被拒绝

转载 作者:IT王子 更新时间:2023-10-29 00:39:20 24 4
gpt4 key购买 nike

我无法添加后端服务器,因为运行状况检查失败并显示日志消息

Health check for server mule/muleapp failed, reason: Layer4 connection problem, info: "General socket error (Permission denied)", check duration: 0ms, status: 0/2 DOWN.

不过,我可以远程登录到相同的 IP 和主机。并添加其他后端工作。我看不出权限问题是什么。我的配置非常简单

backend mule
balance roundrobin
server muleapp x.x.x.x:64006 check

(用任意数字替换 x)。我在 HTTP 模式下运行。应该注意的是,连接到本地 TCPMon 端口也不起作用 - 但是没有健康检查日志语句。

最佳答案

问题是 SELinux 只允许 Web 服务器与一组有限的端口建立出站连接。

通过做修复:

semanage port --add --type http_port_t --proto tcp 8001

安装 semanage 之后

yum 安装 policycoreutils-python

引用:https://serverfault.com/questions/654599/weird-interaction-with-systemctl-with-haproxy-on-centos-7

关于linux - Haproxy 健康检查权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26420729/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com