Keepalived not detect haproxy status on Debian Jessie

Keepalived not detect haproxy status on Debian Jessie

vi /etc/keepalived/keepalived.conf

The reason is keepall command does not installed!

Just install

Then everything works fine.

Logrotate HAproxy every 6 hours

Running the logrotate with -f in a cron job:

My /etc/logrotate.d/haproxy

Debian Jessie install latest stable HAproxy

Debian did a great job to keep update the latest update from software like HAproxy.

To set up the latest stable HAproxy on Debian Jessie, just head to


And follow the Instructions below.
It’s safe and clean.

Instructions for latest release

You need to enable the backports repository :

Then, use the following commands:

You will get the latest release of HAProxy 1.6.

Compile Source Install HAProxy for Debian Ubuntu

To continue previous HAproxy post.

To use that latest and greatest feature in HAProxy, you’ll probably end up having it to build it yourself.

1. Set up the build environment:

2. Get the latest dev version from :

Assuming your Linux kernel version is >= 2.6.28.
his will include OpenSSL and zlib compression support.

Seems preety easy?
It’s lot harder to make it works perfect, and here is how:

3. First create Directory for HAproxy :

4. Create HAproxy USER :

This will create HAproxy group as well

5. Copy HAproxy Binary and Configure file:

For HTTP errors:

Add in /etc/haproxy/haproxy.cfg :

6. Create Init Service /etc/init.d/haproxy:

7. Automatic start HAproxy after boot

Edit Default /etc/default/haproxy

Edit Init job: /etc/init.d/haproxy

8. Log file and Log Rotation



9. Start / Stop HAproxy

10. Check log:

Most of these settings came from debian wheezy backports haproxy package.

If you found any missing step, plead kindly let me know.

Installer HAproxy on Debian Wheezy backports

I love Debian, but high disagree not put HAproxy in Wheezy.
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 :

Then install haproxy:

To start HAproxy:

Auto start after reboot:

Edit Default /etc/default/haproxy

Edit Init job: /etc/init.d/haproxy

I will post another one about how to install HAproxy by compile from source.