backend ftp_server option tcplog mode tcp balance leastconn server FTP1 192.168.10.101 check port 21 inter 10s rise 1 fall 2 server FTP2 192.168.10.102 check port 21 inter 10s rise 1 fall 2
backend ftps_server mode tcp balance leastconn server FTP1 192.168.10.101 check port 990 inter 10s rise 1 fall 2 server FTP2 192.168.10.102 check port 990 inter 10s rise 1 fall 2
backend magicinfo_vnc_viewer mode tcp server VNC1 192.168.10.101:5500 check
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.10.101 webA
192.168.10.102 webB
방화벽 해제
service iptables stop
서비스 등록 및 시작
cd examples cp haproxy.init /etc/rc.d/init.d/haproxy service haproxy restart
정보
설치 예제 환경 - OS : CentOS 6.0 - HAProxy version : HAProxy 1.4.22 - Load Balancer Server IP (CentOS) : 192.168.10.100 - MagicInfo Premium Server - Server 1 IP : 192.168.10.101 - Server 2 IP : 192.168.10.102 - Port: 7001,80 (http), 21(ftp)
관련 문서
레이블별 문서
showLabels
false
max
5
spaces
MISDEV
showSpace
false
sort
modified
reverse
true
type
page
cql
label = "kb-how-to-article" and type = "page" and space = "MISDEV"