排错集锦:开启haproxy,报错proxy webcluster has no server available!

Posted 遙遙背影暖暖流星

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了排错集锦:开启haproxy,报错proxy webcluster has no server available!相关的知识,希望对你有一定的参考价值。

[root@localhost init.d]# service haproxy start
Starting haproxy (via systemctl):                          [  确定  ]
[root@localhost init.d]#
Broadcast message from systemd-journald@localhost.localdomain (Sun 2021-07-18 18:02:19 CST):

haproxy[97183]: proxy webcluster has no server available!


Broadcast message from systemd-journald@localhost.localdomain (Sun 2021-07-18 18:02:19 CST):

haproxy[97183]: proxy webcluster has no server available!


Message from syslogd@localhost at Jul 18 18:02:19 ...
 haproxy[97183]:proxy webcluster has no server available!

Message from syslogd@localhost at Jul 18 18:02:19 ...
 haproxy[97183]:proxy webcluster has no server available!
^C

没有该服务
检查配置文件

[root@localhost init.d]# cd /etc/haproxy/
[root@localhost haproxy]# vim haproxy.cfg
listen  webcluster 0.0.0.0:80
        option httpchk GET /index.html   #修改为nginx对应网络文件名才行
        balance roundrobin
        server  inst1 192.168.100.6:80  check inter 2000 fall 3
        server  inst2 192.168.100.7:80  check inter 2000  fall 3

以上是关于排错集锦:开启haproxy,报错proxy webcluster has no server available!的主要内容,如果未能解决你的问题,请参考以下文章

Juniper交换机PROXY-ARP问题排错思路整理

报错集锦:开启docker报错Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit

报错集锦:开启docker报错Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit

排错集锦1:crontab 发送邮件不成功

排错集锦4 win10打不开网络设置

排错集锦——LVS+Keepalive配置vip显示already uses address