Can';不要在Cygwin上启动HAProxy
我想在Cygwin上启动HAProxy。当我这样做时,我得到以下回应:Can';不要在Cygwin上启动HAProxy,cygwin,haproxy,Cygwin,Haproxy,我想在Cygwin上启动HAProxy。当我这样做时,我得到以下回应: $ /usr/local/sbin/haproxy -f /usr/local/sbin/haproxy.cfg [ALERT] 313/180006 (4008) : cannot change UNIX socket ownership (/tmp/haproxy.socket). Aborting. [ALERT] 313/180006 (4008) : [/us
$ /usr/local/sbin/haproxy -f /usr/local/sbin/haproxy.cfg
[ALERT] 313/180006 (4008) : cannot change UNIX socket ownership
(/tmp/haproxy.socket). Aborting.
[ALERT] 313/180006 (4008) : [/usr/local/sbin/haproxy.main()]
Some protocols failed to start
their listeners! Exiting.
这似乎是由于我的配置文件中的以下行导致的,当我撕开它时,它会启动:
stats socket /tmp/haproxy.socket uid haproxy mode 770 level admin
整个配置:
global
log 127.0.0.1 local0 info
stats socket /tmp/haproxy.socket uid haproxy mode 770 level admin
maxconn 1000
daemon
defaults
log global
mode tcp
option tcplog
option dontlognull
retries 3
option redispatch
maxconn 1000
timeout connect 5s
timeout client 120s
timeout server 120s
listen rabbitmq_local_cluster 127.0.0.1:5555
mode tcp
balance roundrobin
server rabbit_0 127.0.0.1:5673 check inter 5000 rise 2 fall 3
server rabbit_1 127.0.0.1:5674 check inter 5000 rise 2 fall 3
listen private_monitoring 127.0.0.1:8100
mode http
option httplog
stats enable
stats uri /stats
stats refresh 5s
任何想法都将不胜感激,谢谢 正如我所料,答案很简单。问题行中引用的我的用户“haproxy”: 统计套接字/tmp/haproxy.socket uidhaproxy模式770级别管理
在本地计算机上没有必要的权限。一旦设置好,它就可以正常运行。很高兴知道它在cygwin上仍然有效,这是什么版本的haproxy?顺便说一句,我不知道windows上支持UNIX套接字。或者它们可能是通过命名管道模拟的?Hi@Willy Tarreau,它是HAP 1.4.22。我对Unix套接字问题不太清楚,因为我对这个问题知之甚少(因此是noob问题)。我只是想建立一个本地LB来测试RabbitMQ集群,而Cygwin/HAP combo被推荐为一个相对容易的解决方案。我使用的配置主要是一个示例中的剪切粘贴。如果您有任何关于这个主题的知识可以传授,我们将不胜感激。谢谢