Versionsprüfung
haproxy -v
Wichtige Dateien und Verzeichnisse
- Konfigurationsdatei:
/etc/haproxy/haproxy.cfg - Binär:
/usr/sbin/haproxy
Dienstverwaltung
HAProxy starten:
systemctl start haproxy
Nach Konfigurationsänderungen neu starten:
systemctl restart haproxy
Status prüfen:
systemctl status haproxy
Live-Logs anzeigen:
journalctl -u haproxy -f
Konfiguration
Konfiguration bearbeiten:
vim /etc/haproxy/haproxy.cfg
Konfiguration validieren:
haproxy -c -f /etc/haproxy/haproxy.cfg
Nach Änderungen neu starten:
systemctl restart haproxy
Hinweise
- HAProxy ist installiert, aber NICHT automatisch konfiguriert
- Stellen Sie sicher
/etc/haproxy/haproxy.cfgvor der Verwendung korrekt gesetzt ist - Nach jeder Änderung ist ein Neustart erforderlich
- Der Dienst funktioniert mit der standardmäßig leeren Konfiguration nicht korrekt