In my previous post i have described how to configure HAProxy load balancer on ubuntu. Here in this post i will describe how to do it on red-hat. Please make sure you are doing all this with necessary permissions for the your account.
01. Install HAProxy using following commands
wget http://haproxy.1wt.eu/download/1.2/src/haproxy-1.2. 17.tar.gz
tar -zxf haproxy-1.2.17.tar.gz
cd haproxy-1.2.17
make
cp haproxy /usr/sbin/haproxy
02.Copy and edit config files
wget http://layer1.rack911.com/haproxy/haproxy-standard.cfg -O /etc/haproxy.cfg
wget http://layer1.rack911.com/haproxy/haproxy.init -O /etc/init.d/haproxy
chmod +x /etc/init.d/haproxy
03.Starting server
sudo /etc/init.d/haproxy start
04.restarting server after any changes
sudo /etc/init.d/haproxy restart
Use the same config file mentioned in earlier post of mine. After installation everything is
same as ubuntu.