HAProxy Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
  yum install haproxy
  yum install haproxy


This will install a sample configuration file as /etc/haproxy/haproxy.cfg and a systemd unit file in /usr/lib/systemd/system/haproxy.service
This will install the default configuration file as <tt>/etc/haproxy/haproxy.cfg</tt>, the systemd unit file as <tt>/usr/lib/systemd/system/haproxy.service</tt> and the systemd configuration file <tt>/etc/sysconfig/haproxy</tt>.


To configure it to start at boot:
To configure it to start at boot:


  systemctl enable haproxy
  systemctl enable haproxy

Revision as of 02:46, 4 July 2017

Internal

Overview

yum install haproxy

This will install the default configuration file as /etc/haproxy/haproxy.cfg, the systemd unit file as /usr/lib/systemd/system/haproxy.service and the systemd configuration file /etc/sysconfig/haproxy.

To configure it to start at boot:

systemctl enable haproxy