Versionstjek
haproxy -v
Vigtige filer og mapper
- Konfigurationsfil:
/etc/haproxy/haproxy.cfg - Binær:
/usr/sbin/haproxy
Service Management
Start HAProxy:
systemctl start haproxy
Genstart efter konfigurationsændringer:
systemctl restart haproxy
Tjek status:
systemctl status haproxy
Se live logs:
journalctl -u haproxy -f
Konfiguration
Rediger konfiguration:
vim /etc/haproxy/haproxy.cfg
Valider konfiguration:
haproxy -c -f /etc/haproxy/haproxy.cfg
Genstart efter ændringer:
systemctl restart haproxy
Noter
- HAProxy er installeret, men konfigureres IKKE automatisk
- Sikre
/etc/haproxy/haproxy.cfger korrekt indstillet før brug - Genstart er påkrævet efter hver ændring
- Tjenesten fungerer ikke korrekt med tomme standardkonfigurationer