3

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) : [/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

任意のアイデアをいただければ幸いです、ありがとう!

4

2 に答える 2

3

私が期待したように、簡単な答え。問題のある行で参照されている私のユーザー「haproxy」:

統計ソケット /tmp/haproxy.socket uid haproxyモード 770 レベルの管理者

ローカル マシンで必要なアクセス許可がありませんでした。これを設定したら、問題なく起動しました。

于 2012-11-12T13:49:33.433 に答える
1

cygwin でまだ動作することを知ってうれしいです。これは haproxy のどのバージョンですか? UNIXソケットがWindows BTWでサポートされていることを知りませんでした。それとも、名前付きパイプを介してエミュレートされているのでしょうか?

于 2012-11-26T18:28:37.150 に答える