Sysops Notepad

[Liunx] rocky 8 haproxy 2.4.8 compile from source 본문

업무/sys

[Liunx] rocky 8 haproxy 2.4.8 compile from source

sysops 2022. 4. 12. 11:10

사전작업

# yum install -y pcre2-devel zlib-devel openssl-devel systemd-devel

compile

 

cd /home/temp/
wget http://www.haproxy.org/download/2.4/src/haproxy-2.4.8.tar.gz
tar zxvf haproxy-2.4.8.tar.gz
cd haproxy-2.4.8
make TARGET=linux-glibc \
USE_OPENSSL=1 USE_ZLIB=1 USE_SYSTEMD=1 \
USE_PCRE2=1 USE_PCRE2_JIT=1
make PREFIX=/home/haproxy install
ln -sf /home/haproxy/sbin/haproxy /usr/local/bin/haproxy
Comments