Louie NRT Story

[Cloud_Training] HAProxy 본문

서버시스템

[Cloud_Training] HAProxy

hyeok0724.kim@gmail.com 2018. 12. 11. 18:10
반응형

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.


반응형
Comments