일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- YMODEM
- dynamodb
- 펌웨어
- esp8266
- 안드로이드
- IOT Core
- 라즈베리파이
- raspberry
- STM32
- everon
- 전기차
- 전기차충전
- Android
- 파이썬
- 충전기
- 완속충전기
- 에버온
- AWS
- 보안
- homeassistant
- 급속충전기
- 전기차충전기
- 홈어시스턴트
- thread
- 플라스크
- OCPP
- lambda
- 서버리스
- 디자인패턴
- flask
- Today
- Total
Louie NRT Story
[Cloud_Training] HAProxy 본문
Firstly, set and test DNS
yum install -y bind bind-utils bind-libs
Install tool such nslookup, ifconfig, etc.
vi /etc/named.conf
Modify like this.
vi /etc/named.rfc1912.zones
cd /var/named/
cp named.localhost louie.com.zone
vi louie.com.zone
Copy DNS config file and revise file copied.
cd ..
chmod 755 -R named/
give authorize.
service named start
Test DNS
Complete DNS server.
Install and set HAProxy
yum install -y haproxy
vi /etc/haproxy/haproxy.cfg
Input inner port 4331 in firewall.
First I learned need to firewall port, however, it is not effect on haproxy.
vi /var/named/louie.com.zone
modify proxy server IP.
service named restart
service haproxy restart
erase DNS data in client.
check DNS data.
Look at same URL, just press F5 button.
HAProxy distribute alternately.
'서버시스템' 카테고리의 다른 글
[Cloud_Class] 181213 Blind SQL Injection (0) | 2018.12.13 |
---|---|
[Cloud_Class] 181212 SQL Injection (0) | 2018.12.12 |
[Cloud_Class] 181211 Cookie 탈취 (0) | 2018.12.11 |
[Cloud_Class] 181210 Cross-Site Scripting(XSS) (0) | 2018.12.10 |
[Cloud_Training] Looking for BeeBox Web Password (0) | 2018.12.10 |