haproxy 소스설치
※ 테스트 환경
OS : CentOS 7.6
커널 버전 : 3.10
1. 필수 패키지 설치
# yum install -y gcc openssl pcre-static pcre-devel systemd-devel openssl-devel
2. haproxy 설치
# wget http://www.haproxy.org/download/1.8/src/haproxy-1.8.12.tar.gz
# make TARGET=linux2628 USE_OPENSSL=1 USE_PCRE=1 USE_ZLIB=1 USE_SYSTEMD=1
# make install
# ln -s /usr/local/sbin/haproxy /usr/sbin/haproxy
# cp -arp examples/haproxy.init /etc/init.d/haproxy
# chmod 755 /etc/init.d/haproxy
# systemctl daemon-reload
# chkconfig haproxy on
# useradd -r haproxy
# vi /etc/haproxy/haproxy.cfg
global
log /dev/log local0
log /dev/log local1 notice
user haproxy
group haproxy
daemon
maxconn 4096
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
frontend http-in
bind *:80
default_backend servers
# /etc/init.d/haproxy start
'LINUX > Load Balance' 카테고리의 다른 글
haproxy 웹에서 통계리포트 보기 (0) | 2019.08.22 |
---|---|
haproxy 설정 (0) | 2019.08.22 |
Ubuntu - haproxy 설치 (0) | 2019.08.22 |