| 本帖最后由 zxxx 于 2023-3-11 12:13 编辑 
 下载 https://github.com/haproxy/haproxy/archive/refs/tags/v2.7.0.tar.gz
 
 保存到 C:\Temp\haproxy-2.7.0.tar.gz
 
 启动 cygwin
 
 
 复制代码cd /cygdrive/c/Temp/
tar zxvf haproxy-2.7.0.tar.gz
cd /cygdrive/c/Temp/haproxy-2.7.0
make TARGET=cygwin
make install
ls *.exe
 
 创建文件夹 C:\HAProxy
 
 复制 C:\Temp\haproxy-2.7.0\haproxy.exe 到 C:\HAProxy
 
 打开命令窗口运行 C:\HAProxy\haproxy.exe 提示
 
 
  
 复制 C:\cygwin64\bin\cygwin1.dll 到 C:\HAProxy
 
 再次运行
 
 
 复制代码HAProxy version 2.7.0-437fd289f2e3 2022/12/01 - https://haproxy.org/
Status: stable branch - will stop receiving fixes around Q1 2024.
Known bugs: http://www.haproxy.org/bugs/bugs-2.7.0.html
Running on: CYGWIN_NT-10.0-20348 3.4.6-1.x86_64 2023-02-14 13:23 UTC x86_64
Usage : haproxy [-f <cfgfile|cfgdir>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]
        [ -p <pidfile> ] [ -m <max megs> ] [ -C <dir> ] [-- <cfgfile>*]
        -v displays version ; -vv shows known build options.
        -d enters debug mode ; -db only disables background mode.
        -dM[<byte>,help,...] debug memory (default: poison with <byte>/0x50)
        -V enters verbose mode (disables quiet mode)
        -D goes daemon ; -C changes to <dir> before loading files.
        -W master-worker mode.
        -q quiet mode : don't display messages
        -c check mode : only check config files and exit
        -cc check condition : evaluate a condition and exit
        -n sets the maximum total # of connections (uses ulimit -n)
        -m limits the usable amount of memory (in MB)
        -N sets the default, per-proxy maximum # of connections (0)
        -L set local peer name (default to hostname)
        -p writes pids of all children to this file
        -dC[[key],line] display the configuration file, if there is a key, the file will be anonymised
        -dp disables poll() usage even when available
        -dK{class[,...]} dump registered keywords (use 'help' for list)
        -dr ignores server address resolution failures
        -dV disables SSL verify on servers side
        -dW fails if any warning is emitted
        -dD diagnostic mode : warn about suspicious configuration statements
        -sf/-st [pid ]* finishes/terminates old pids.
        -x <unix_socket> get listening sockets from a unix socket
        -S <bind>[,<bind options>...] new master CLI
 
 下载:https://52u.lanzouy.com/iun6r0ptng5e 密码:ekxa
 
 
 
 
 
 
 
 |