Symptome
systemctl status nginxzeigt failed oder inactive.curl http://127.0.0.1scheitert; Log:Address already in useauf Port 80.
Wahrscheinliche Ursachen
- Portbelegung, Syntaxfehler in nginx-Config, falsche Rechte auf Zertifikat/DocumentRoot, volle SD-Karte.
Standardlösung
sudo systemctl status nginx --no-pagerundsudo journalctl -u nginx -n 40 --no-pagersudo nginx -tsudo ss -tlnp | grep ':80 '- Letzte Änderung zurücknehmen, dann
sudo systemctl restart nginx
Erweiterte Diagnose
sudo tail -n 80 /var/log/nginx/error.log
sudo lsof -i :80
bind() to 0.0.0.0:80 failed (98: Address already in use)
Notfallhinweis
Bei Datenverlust-Risiko: zuerst Backup; keine hastigen Formatierungen.
