4,443,349 th visitor since 2017.2.1 ( Today : 9863 )
Computer ???
No. 482
Name. swindler
Subject. HAProxy 설치
Main Cate. Linux
Sub Cate.
Date. 2017-12-20 11:56
Hit. 2099 (125.131.199.20)
File.
소프트웨어로 Load Balancer 를 구동하기 위해서 가장 많이 사용하는게 HAProxy 인듯.

1.6 버전부터는 SSL을 정식으로 지원한다고 한다.
(예전버전은 SSL을 사용할려면 무조건 https 로만 통신해야 한다고..)

http://www.haproxy.org

현재 stable 버전은 1.8.1 이다.
일단 파일을 다운받고 설치를 시작한다.


tar xvzf haproxy-1.8.1.tar.gz

컴파일을 하기전에, README 문서를 보고 TARGET을 지정해야 한다.

리눅스 부분은 대충 아래와 같이 써 있는데,

- linux22 for Linux 2.2
? linux24 for Linux 2.4 and above (default)
? linux24e for Linux 2.4 with support for a working epoll (> 0.21)
? linux26 for Linux 2.6 and above
? linux2628 for Linux 2.6.28, 3.x, and above (enables splice and tproxy)

뭐 거의 대부분 linux2628 이지 않을까.

궁금하면 uname -a 명령어를 통하여 서버의 버전을 확인 할 수 있다.

make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1

설치전에 openssl 과 pcre 라이브러리가 필요하다.

yum install openssl
yum install pcre-devel

컴파일이 끝나고 나면
make install 을 통하여 설치한다.

이제 config 파일을 만들어야 하는데,
/etc/haproxy 디렉토리를 생성하고
/etc/haproxy/haproxy.cfg 파일을 만든다.



[바로가기 링크] : http://coolx.net/cboard/computer/482



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog