全球主机交流论坛
标题:
Windows 下面编译 HAProxy
[打印本页]
作者:
zxxx
时间:
2023-3-11 12:13
标题:
Windows 下面编译 HAProxy
本帖最后由 zxxx 于 2023-3-11 12:13 编辑
下载、安装 https://www.cygwin.com/setup-x86_64.exe
搜索 gcc 点击下箭头选择版本
搜索 make 点击下箭头选择版本
确认更改
完成
作者:
zxxx
时间:
2023-3-11 12:13
本帖最后由 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
复制代码
haproxy.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
作者:
xc55
时间:
2023-3-11 12:15
支持技术贴
作者:
hcyme
时间:
2023-3-11 12:15
操作系统上还没玩过,都是路由器的,
作者:
cwzy
时间:
2023-3-11 14:58
mark
作者:
js攻城狮
时间:
2023-3-11 15:13
这个有啥用?搜了一下看不懂介绍
欢迎光临 全球主机交流论坛 (https://www.91ai.net/)
Powered by Discuz! X3.4