HAProxy: Instalando o HAProxy: Difference between revisions

From Wiki
(Criou a página com "Passos para Instalar e Configurar o HAProxy = Procedimento = == Instalando == 1) Instalando os Pacotes yum update yum install -y haproxy == Configure the load balanc...")
 
 
(One intermediate revision by the same user not shown)
Line 55: Line 55:
= Ver também =
= Ver também =


*[[OpenLDAP:Configurando um LDAP Proxy]]
* [[HAProxy: Configurando o HAProxy para o Sterling B2B]]
*[[AWSTATS: Configurando o AWSTATS]]
*[[MySQL:Configurando o MySQL]]
*[[BIND: Configurando o suporte ao Active Directory]]




Line 66: Line 63:


[[Category:Linux]]
[[Category:Linux]]
[[Category:HAP Proxy]]
[[Category:HAProxy]]
[[Category:Tecnologias]]
[[Category:Tecnologias]]

Latest revision as of 16:58, 9 September 2020

Passos para Instalar e Configurar o HAProxy


Procedimento

Instalando

1) Instalando os Pacotes

yum update
yum install -y haproxy

Configure the load balancer

Vamos criar o arquivo /etc/haproxy/haproxy.cfg, usando o seu editor de preferência e adicionar:

global
   log /dev/log local0
   log /dev/log local1 notice
   chroot /var/lib/haproxy
   stats socket /run/haproxy/admin.sock mode 660 level admin
    stats timeout 30s
    user haproxy
    group haproxy
    daemon

defaults
     log global
     mode http
     option httplog
     option dontlognull
     timeout connect 5000
     timeout client 50000
     timeout server 50000

frontend http_front
     bind *:80
     stats uri /haproxy?stats
     default_backend http_back

backend http_back
     balance roundrobin
     server my_server private_IP:80 check
     server my_server private_IP:80 check

Salve e feche o arquivo


Habilitando e iniciando o serviço

systemctl restart haproxy
systemctl enable haproxy

Ver também