小编use*_*525的帖子

HaProxy(无法绑定套接字,选择测试失败)

各位大家好,我正在研究一个高可用性项目,我不得不为某些应用程序投入生产haproxy.一些基础测试后一切都很好,但我有一些错误,无法解决它.有人有想法吗?

这是测试

#/ usr/sbin/haproxy -d -f /etc/haproxy/haproxy.cfg

Available polling systems : 

 sepoll : pref=400,  test result OK 
 epoll : pref=300,  test result OK 
 poll : pref=200,  test result OK 
 select : pref=150,  test result FAILED 

Total: 4 (3 usable), will use sepoll. 
Using sepoll() as the polling mechanism. 
[ALERT] 174/160258 (22038) : Starting proxy mysql: cannot bind socket 
[ALERT] 174/160258 (22038) : Starting proxy http: cannot bind socket 
Run Code Online (Sandbox Code Playgroud)

有我的文件haproxy.cfg

global 
log 127.0.0.1 local0 notice
user haproxy
group haproxy
maxconn 32000 …
Run Code Online (Sandbox Code Playgroud)

sockets load-balancing high-availability haproxy

5
推荐指数
1
解决办法
3万
查看次数