# haproxy **Repository Path**: catsnyne/haproxy ## Basic Information - **Project Name**: haproxy - **Description**: Personal Blog https://haudi.top for haproxy usages - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://haudi.top - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-09-18 - **Last Updated**: 2023-02-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Blog - Personal Blog [https://haudi.top](https://haudi.top) for haproxy usages # haproxy I have been using HaProxy frequently recently, but there's no Windows version can be found online , so I Share the compiled results. windows cygwin compile's version Can't support all Different parameters like version that compiled at linux platform. `` JUST For testing purposes only `` ![snapshot_overview](illustrations/snapshot_overview.png) ## Intro > haproxy for windows build. > > Just compile by step: > make TARGET=cygwin > > or > > make TARGET=cygwin TRACE=1 `` haproxy.exe `` only depend on `` cygwin1.dll`` ## USAGE ### check configure file & console daemon running ``` D:\haproxy_2.2>.\haproxy.exe -c -f option-http_proxy.cfg Configuration file is valid D:\haproxy_2.2>.\haproxy.exe -f option-http_proxy.cfg -D [WARNING] 261/154118 (1099) : Failed to get the default value of TCP_MAXSEG [WARNING] 261/154118 (1099) : Failed ot get the default value of TCP_MAXSEG for IPv6 [NOTICE] 261/154118 (1099) : haproxy version is 2.2.3-0e58a34 [ALERT] 261/154118 (1099) : Starting frontend test-proxy: cannot bind socket [0.0.0.0:38080] [ALERT] 261/154118 (1099) : Starting proxy stats: cannot bind socket [0.0.0.0:20936] D:\haproxy_2.2>tasklist | findstr haproxy haproxy.exe 17772 Services 0 7,692 K D:\haproxy_2.2> ``` ### version & help ``` D:\haproxy_2.2>.\haproxy.exe -v HA-Proxy version 2.2.3-0e58a34 2020/09/08 - https://haproxy.org/ Status: long-term supported branch - will stop receiving fixes around Q2 2025. Known bugs: http://www.haproxy.org/bugs/bugs-2.2.3.html Running on: CYGWIN_NT-10.0-19041 3.1.7-340.x86_64 2020-08-22 17:48 UTC x86_64 D:\haproxy_2.2>.\haproxy.exe -h HA-Proxy version 2.2.3-0e58a34 2020/09/08 - https://haproxy.org/ Status: long-term supported branch - will stop receiving fixes around Q2 2025. Known bugs: http://www.haproxy.org/bugs/bugs-2.2.3.html Running on: CYGWIN_NT-10.0-19041 3.1.7-340.x86_64 2020-08-22 17:48 UTC x86_64 Usage : haproxy [-f ]* [ -vdVD ] [ -n ] [ -N ] [ -p ] [ -m ] [ -C ] [-- *] -v displays version ; -vv shows known build options. -d enters debug mode ; -db only disables background mode. -dM[] poisons memory with (defaults to 0x50) -V enters verbose mode (disables quiet mode) -D goes daemon ; -C changes to before loading files. -W master-worker mode. -q quiet mode : don't display messages -c check mode : only check config files 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 -dp disables poll() usage even when available -dr ignores server address resolution failures -dV disables SSL verify on servers side -dW fails if any warning is emitted -sf/-st [pid ]* finishes/terminates old pids. -x get listening sockets from a unix socket -S [,...] new master CLI ``` ## Service Install nssm service managerment tools [https://nssm.cc/](https://nssm.cc/) ### nssm gui ![image-20200918155001895](illustrations/image-20200918155001895.png) ``` D:\haproxy_2.2>nssm.exe install @_haproxy_2.2.1 Service "@_haproxy_2.2.1" installed successfully! ``` ![image-20200918155207536](illustrations/image-20200918155207536.png) ![image-20200918155729746](illustrations/image-20200918155729746.png) ### nssm manual ``` D:\kava\haproxy_git\haproxy_2.2>nssm.exe -h NSSM: The non-sucking service manager Version 2.24 64-bit, 2014-08-31 Usage: nssm