Versionscheck
haproxy -v
Vigtige filer og mapper
- Konfigurationsfil:
/etc/haproxy/haproxy.cfg - Binær:
/usr/sbin/haproxy
Servicestyrring
Start HAProxy:
systemctl start haproxy
Genstart efter konfigurationsændringer:
systemctl restart haproxy
Kontroller status:
systemctl status haproxy
Se live-logs:
journalctl -u haproxy -f
Konfiguration
Rediger config:
vim /etc/haproxy/haproxy.cfg
Valider config:
haproxy -c -f /etc/haproxy/haproxy.cfg
Genstart efter ændringer:
systemctl restart haproxy
Noter
- HAProxy er installeret, men IKKE automatisk konfigureret
- Sikr dig
/etc/haproxy/haproxy.cfger korrekt sat, inden det tages i brug - Genstart er påkrævet efter hver ændring
- Tjenesten fungerer ikke korrekt med en tom standardkonfiguration