/var/log/message里的错误消息大概如下:
Feb 13 09:32:50 cluster-node2 haproxy-systemd-wrapper: [ALERT] 043/093250 (6538) : Starting proxy rabbitmq-cluster-management: cannot bind socket [192.168.22.30:15673]
Feb 13 09:32:50 cluster-node2 haproxy-systemd-wrapper: haproxy-systemd-wrapper: exit, haproxy RC=1
Feb 13 09:32:50 cluster-node2 systemd: haproxy.service: main process exited, code=exited, status=1/FAILURE
解决URL:
http://www.itkeyword.com/doc/9526397223077808x337/haproxy-cannot-bind-socket-0-0-0-08888
一般人是:
vim /etc/sysctl.conf
net.ipv4.ip_nonlocal_bind=1
然后sysctl -p成功启动
我解决的是:
setsebool -P haproxy_connect_any=1