Do you know how many people using it over the world, do you know how stable HAproxy is?
To install HAproxy on Debian Wheezy, have to through backports.
First add backports in /etc/apt/sources.list :
deb http://ftp.debian.org/debian/ wheezy-backports main
Then install haproxy:
apt-get update ; apt-get install haproxy
To start HAproxy:
service haproxy start
Auto start after reboot:
Edit Default /etc/default/haproxy
# Set ENABLED to 1 if you want the init script to start haproxy.
ENABLED=1
Edit Init job: /etc/init.d/haproxy
HAPROXY=/usr/sbin/haproxy
EXTRAOPTS=
ENABLED=1
I will post another one about how to install HAproxy by compile from source.
Reference:https://packages.debian.org/wheezy-backports/haproxy
hi, thanks for the tip, i'll bookmark your blog.
ReplyDeleteCya.
Thanks for the tip :)
ReplyDeleteIt's wrong to edit /etc/init.d/haproxy
ReplyDeleteAfter setting ENABLED=1 in /etc/default/haproxy, the init script should start the service!
Thanks for your comments.
ReplyDeleteHey, thanks for the great tip, I was looking on how to implement a small load balancer under Haproxy and I wasn't able to install it inside debian 7
ReplyDelete