- 서비스 추가
ipvsadm -A -t xxx.xxx.xxx.xxx:80 -s wlc
ipvsadm -A -t xxx.xxx.xxx.xxx:443 -s wlc
- 리얼서버 추가
ipvsadm -a -t xxx.xxx.xxx.xxx:80 -r www1.domain.name:80 -m -w 1
ipvsadm -a -t xxx.xxx.xxx.xxx:443 -r www1.domain.name:443 -m -w 1
ipvsadm -a -t xxx.xxx.xxx.xxx:80 -r www2.domain.name:80 -m -w 1
ipvsadm -a -t xxx.xxx.xxx.xxx:443 -r www2.domain.name:443 -m -w 1
- Real 서버 중단
ipvsadm -d -t xxx.xxx.xxx.xxx:80 -r www1.domain.name:80
ipvsadm -d -t xxx.xxx.xxx.xxx:443 -r www1.domain.name:443
ipvsadm -d -t xxx.xxx.xxx.xxx:80 -r www2.domain.name:80
ipvsadm -d -t xxx.xxx.xxx.xxx:443 -r www2.domain.name:443
- 서비스 전체 삭제
ipvsadm -D -t xxx.xxx.xxx.xxx:80 -s wlc
ipvsadm -D -t xxx.xxx.xxx.xxx:443 -s wlc
ipvsadm -D -t xxx.xxx.xxx.xxx:444 -s wlc
* xxx.xxx.xxx.xxx
; 로드밸런싱 서버 IP (게이트웨이)
* www1.domain.name, www2.domain.name
; www1, www2 서버 주소
ex) www1.naver.com, www2.naver.com
'개발 - 예제 모음 > LINUX & UNIX' 카테고리의 다른 글
fail2ban - 설정 - jail.conf (1) | 2009.09.15 |
---|---|
sendmail - aliases 설정 (0) | 2009.08.10 |
rsync (0) | 2009.06.03 |
sendmail - 도메인 추가 (0) | 2009.03.23 |
runlevel(부팅레벨, 실행레벨) 수정 - /etc/inittab (0) | 2009.03.23 |