主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情! |
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作 |
rabbitmq和haproxy结合时候,遇到了下面问题某段配置:
listen rabbitmq_local_cluster 127.0.0.1:5670 mode tcp balance roundrobin server rabbit1 127.0.0.1:5672 check inter 5000 rise 2 fall 3 server rabbit2 127.0.0.1:5673 check inter 5000 rise 2 fall 3 server rabbit3 127.0.0.1:5674 check inter 5000 rise 2 fall 3listen private_monitoring :8100 mode http option httplog stats enable stats uri /stats stats refresh 5s
报错:
[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:27] : 'listen' cannot handle unexpected argument '127.0.0.1:5670'.[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:27] : please use the 'bind' keyword for listening addresses.[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:40] : 'listen' cannot handle unexpected argument ':8100'.[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:40] : please use the 'bind' keyword for listening addresses.
修改为既可以
listen rabbitmq_local_cluster bind 127.0.0.1:5670 mode tcp balance roundrobin server rabbit1 127.0.0.1:5672 check inter 5000 rise 2 fall 3 server rabbit2 127.0.0.1:5673 check inter 5000 rise 2 fall 3 server rabbit3 127.0.0.1:5674 check inter 5000 rise 2 fall 3listen private_monitoring bind :8100 mode http option httplog stats enable stats uri /stats stats refresh 5s
重新启动【haproxy -f haproxy.cfg.local_cluster】报错:
[ALERT] 167/151959 (58789) : Starting frontend GLOBAL: cannot change UNIX socket ownership [/tmp/haproxy.socket]
改成sudo haproxy -f haproxy.cfg.local_cluster 既可以。全部配置:https://github.com/rabbitinaction/sourcecode/blob/master/configs/haproxy/haproxy.cfg.local_cluster
rabbitmq和haproxy结合时候,遇到了下面问题某段配置:
listen rabbitmq_local_cluster 127.0.0.1:5670 mode tcp balance roundrobin server rabbit1 127.0.0.1:5672 check inter 5000 rise 2 fall 3 server rabbit2 127.0.0.1:5673 check inter 5000 rise 2 fall 3 server rabbit3 127.0.0.1:5674 check inter 5000 rise 2 fall 3listen private_monitoring :8100 mode http option httplog stats enable stats uri /stats stats refresh 5s
报错:
[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:27] : 'listen' cannot handle unexpected argument '127.0.0.1:5670'.[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:27] : please use the 'bind' keyword for listening addresses.[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:40] : 'listen' cannot handle unexpected argument ':8100'.[ALERT] 167/151633 (56845) : parsing [haproxy.cfg.local_cluster:40] : please use the 'bind' keyword for listening addresses.
修改为既可以
listen rabbitmq_local_cluster bind 127.0.0.1:5670 mode tcp balance roundrobin server rabbit1 127.0.0.1:5672 check inter 5000 rise 2 fall 3 server rabbit2 127.0.0.1:5673 check inter 5000 rise 2 fall 3 server rabbit3 127.0.0.1:5674 check inter 5000 rise 2 fall 3listen private_monitoring bind :8100 mode http option httplog stats enable stats uri /stats stats refresh 5s
重新启动【haproxy -f haproxy.cfg.local_cluster】报错:
[ALERT] 167/151959 (58789) : Starting frontend GLOBAL: cannot change UNIX socket ownership [/tmp/haproxy.socket]
改成sudo haproxy -f haproxy.cfg.local_cluster 既可以。全部配置:https://github.com/rabbitinaction/sourcecode/blob/master/configs/haproxy/haproxy.cfg.local_cluster
--------------------------------------------------------------
主机参考,收集国内外VPS,VPS测评,主机测评,云服务器,虚拟主机,独立服务器,国内外服务器,高性价比建站主机相关优惠信息@zhujicankao.com
详细介绍和测评国外VPS主机,云服务器,国外服务器,国外主机的相关优惠信息,商家背景,网络带宽等等,也是目前国内最好的主机云服务器VPS参考测评资讯优惠信息分享平台
这几篇文章你可能也喜欢:
- 亚洲云:真是一个美好的生日礼物! 免费服务器!
- CloudCone,美国Win系统VPS云服务器少量补货,美国洛杉矶MC机房,KVM虚拟架构,3核4G内存1Gbps带宽,17.49美元/月
- 搬瓦工,日本VPS云服务器测评报告,日本CN2 GIA高端线路大带宽VPS测评,搬瓦工VPS测评,搬瓦工VPS好不好?搬瓦工VPS值得购买吗?
- ShockHosting,新加坡VPS云服务器测评报告,ShockHosting免备案VPS主机测评,VPS速度和综合性能测评,ShockHosting好不好?ShockHosting值得购买吗?
- DediPath,国外便宜低价VPS云服务器最新优惠,美国洛杉矶/圣何塞/西雅图等,OVZ虚拟架构,2核5G内存1Gbps带宽,5美元/月
本文由主机参考刊发,转载请注明:HAProxy启动时候常见问题 https://zhujicankao.com/12641.html
评论前必须登录!
注册