Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
FREEDOM251

Freedom251 › Blog › Apache Tomcat

Welcher Benutzername und welches Passwort gelten für localhost:8080?

By Freedom251 Team · · 4 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Für localhost:8080 gibt es keinen allgemeinen Benutzernamen und kein universelles Passwort. localhost bezeichnet den eigenen Rechner, 8080 nur einen TCP-Port. Erst die Anwendung, ihre Version, der URL-Pfad und ihre lokale Konfiguration bestimmen, ob eine Anmeldung nötig ist und welche Daten gelten. Probieren Sie daher nicht pauschal admin/admin, tomcat/tomcat oder user/password aus.

Was bedeutet localhost:8080?

Mehrere völlig unterschiedliche Dienste können Port 8080 verwenden, etwa Jenkins, Apache Tomcat, eine Spring-Boot-Anwendung, ein Docker-Container oder eine eigene Webanwendung. Auf derselben IP-Adresse kann jeweils nur ein Prozess den Port gleichzeitig belegen; Weiterleitungen und andere Bindings können das Bild jedoch verändern.

As an Amazon Associate I earn from qualifying purchases.

Auch der Pfad ist entscheidend: http://localhost:8080/, /jenkins, /manager/html und /h2-console können verschiedene Oberflächen oder Anwendungen anzeigen. Ein Dienst kann auf der Startseite keine Anmeldung verlangen, während ein Unterpfad geschützt ist.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In wenigen Minuten die Anwendung identifizieren

Browseroberfläche und URL prüfen

  • Jenkins-Logo oder „Unlock Jenkins“ weist auf Jenkins hin.
  • „Tomcat Manager Application“ weist auf die Manager-Webanwendung hin.
  • Eine Spring-Boot-Loginseite, eine Whitelabel-Fehlerseite oder JSON deutet auf eine konkrete Anwendung beziehungsweise API hin.
  • Ein Browserdialog für HTTP-Basic-Authentication ist nicht dasselbe wie ein HTML-Loginformular.

Prozess auf macOS oder Linux ermitteln

lsof -nP -iTCP:8080 -sTCP:LISTEN
ss -ltnp | grep :8080
netstat -ltnp 2>/dev/null | grep :8080

Die Ausgabe nennt typischerweise einen Java-, Docker-Proxy-, Node- oder anderen Prozess.

#1 Best Overall
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
  • Includes Raspberry Pi 5 with 2.4Ghz 64-bit quad-core CPU (8GB RAM)
  • Includes 128GB Micro SD Card pre-loaded with 64-bit Raspberry Pi OS, USB MicroSD Card Reader
  • CanaKit Turbine Black Case for the Raspberry Pi 5
  • CanaKit Low Noise Bearing System Fan
  • Mega Heat Sink - Black Anodized

Prozess unter Windows ermitteln

Get-NetTCPConnection -LocalPort 8080 -State Listen
netstat -ano | findstr :8080

Die gefundene PID lässt sich mit tasklist /FI "PID eq <PID>" oder im Task-Manager zuordnen.

Docker-Container und Logs prüfen

docker ps
docker logs <container-name-oder-id>

Achten Sie auf eine Zuordnung wie 0.0.0.0:8080->8080/tcp. Startmeldungen enthalten häufig einen Initial-Login oder den Speicherort eines erzeugten Passworts. Prüfen Sie zusätzlich .env, docker-compose.yml, Bind-Mounts und Container-Volumes.

Rank #2
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
  • Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM)
  • Includes Pre-Loaded 32GB EVO+ Micro SD Card (Class 10), USB MicroSD Card Reader
  • CanaKit Premium High-Gloss Raspberry Pi 4 Case with Integrated Fan Mount, CanaKit Low Noise Bearing System Fan
  • CanaKit 3.5A USB-C Raspberry Pi 4 Power Supply (US Plug) with Noise Filter, Set of Heat Sinks, Display Cable - 6 foot (Supports up to 4K60p)
  • CanaKit USB-C PiSwitch (On/Off Power Switch for Raspberry Pi 4)

HTTP-Antwort untersuchen

curl -i http://localhost:8080/
curl -I http://localhost:8080/
curl -i http://localhost:8080/login
curl -i http://localhost:8080/actuator/health

Header wie Server, Location und WWW-Authenticate sowie HTML-Titel und Fehlermeldungen verraten oft das Produkt. /actuator/health funktioniert nur bei aktiviertem Actuator; ein 404 bedeutet nicht automatisch, dass der Dienst defekt ist.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Typische Anwendungen und ihre Zugangsdaten

Anwendung Was gilt? Wo prüfen?
Jenkins Generiertes Initialpasswort, kein allgemeines Passwort Jenkins-Log oder Secret-Datei
Apache Tomcat Manager Keine standardmäßig aktivierten Manager-Benutzer tomcat-users.xml oder konfigurierter Realm
Spring Boot mit Standard-Security Oft Benutzer user und zufälliges Startpasswort; konfigurationsabhängig Startlog und application.properties/application.yml
H2-Konsole Projektabhängige JDBC- und Datenbankdaten /h2-console, Datasource-Konfiguration

Jenkins

Bei einer neuen Jenkins-Installation wird ein temporäres Initialpasswort erzeugt. Die offizielle Dokumentation beschreibt die Ablage und den Ablauf für WAR-Installationen und Linux-Pakete.

Rank #3
ELECROW CrowPi Case Kit for Raspberry Pi 5, 9-Inch Display | Basic Kit with 9-Inch Display & Sensors for Learning and Programming, Raspberry Pi 5 Compatible
  • Not including the Raspberry Pi 5 (8GB), the Crowpi advanced version comes with the Raspberry Pi 5
  • ELECROW Black Case for the Raspberry Pi 5, CrowPi is equipped with a 9-inch HD touchscreen along with a camera; All the regular components used in DIY electronics are packed into the CrowPi development board, such as LCD, LED matrix, buzzer, light sensor, PIR sensor, ultrasonic sensor, IR sensor, etc
  • Raspberry Pi Sensors: The Crowpi raspberry pi 5 programming kit is jam-packed with lots of buttons such as 19 different sensors in a tidy easy to use package; You don't have to wait and wire things
  • Build Quality: Solid ABS shell and well made components in one place make it strong and convenient to travel
  • Programming Lessons: This raspberry pi 5 learning kit ships with step by step instructions and provides 21 lessons to take you through identifying components reading code and running it in the terminal
sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Im offiziellen Docker-Image lesen Sie es beispielsweise so:

sudo docker exec <CONTAINER_ID_ODER_NAME> cat /var/jenkins_home/secrets/initialAdminPassword
  1. Log oder Secret-Datei öffnen.
  2. Den vollständigen generierten Wert kopieren.
  3. Auf der Jenkins-Entsperrseite einfügen.
  4. Im Einrichtungsassistenten einen eigenen Administrator mit neuem Passwort anlegen.

Wenn die Benutzererstellung übersprungen wurde, kann Jenkins laut Dokumentation den Benutzernamen admin mit diesem Initialpasswort verwenden. Das ist ein Jenkins-spezifischer Ersteinrichtungsfall. Nach abgeschlossener Einrichtung ist das Initialpasswort möglicherweise ungültig; verwenden Sie dann die vorhandenen Jenkins-Konten und Authentifizierungseinstellungen.

Rank #4
CanaKit Raspberry Pi 5 Desktop PC with SSD (Fully Assembled) (256 GB SSD)
  • Fully assembled for plug-and-play operation
  • Includes Raspberry Pi 5 with 8GB RAM
  • 256 GB PCIe Pi NVMe SSD (Pre-loaded with Pi 64-Bit OS)
  • M.2 HAT+
  • CanaKit Turbine Black Case for the Pi 5

Apache Tomcat

Die Tomcat-Startseite unter http://localhost:8080/ muss keine Anmeldung anzeigen. Für den Manager ist die typische Adresse http://localhost:8080/manager/html. In aktuellen Standardinstallationen sind dort keine Benutzer mit Manager-Rechten aktiviert; Rollen müssen ausdrücklich konfiguriert werden. Die Tomcat-Manager-Dokumentation beschreibt die Standard-Realm-Datei $CATALINA_BASE/conf/tomcat-users.xml.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<user username="craigmcc"
      password="secret"
      roles="standard,manager-script" />

craigmcc/secret ist nur ein Dokumentationsbeispiel und kein automatisch vorhandenes Konto. Auch Werte wie test:test in der Host-Manager-Dokumentation müssen erst selbst mit der passenden Rolle angelegt werden. Vergeben Sie nur die Rolle, die die tatsächlich benötigte Manager-Funktion erfordert.

Best Value
RasTech Raspberry Pi 5 8GB Kit with Active Cooler and Pi5 Case
  • 【What you Get】You will get 1*Pi 5 8GB Single Board,1*RasTech Case,1*Active Cooler,1*Screwdriver,1*Installation instructions,12-month free warranty, lifetime service, 24-hour prompt and friendly response.
  • 【More Connectors】There are two USB 3.0 ports(5Gbps simultaneously) and two USB 2.0 ports, which triple total bandwidth ,support any combination of up to two cameras or displays. Peak SD card performance is doubled through support for the SDR104 high-speed mode. It provides a smooth desktop experience for you. Offer Gigabit Ethernet and a PCIe interface, along with dual-band Wi-Fi and Bluetooth 5.0/BLE wireless capability. The RasTech Pi 5 Kit use the new 27W 5.1V 5A USB-C power connector.
  • 【 Support Dual 4Kp60 Display 】Each of the two microHDMI sockets can control a 4K display at 60 Hertz, now support HDR, offering super HD video for media streaming projects. RPi 5 is the first RPi model that comes with a PCI Express port (PCIe 2.0 x1 with 500 MB/s) to attach SSDs (requires separate M.2 HAT).
  • 【 Excellent Chips And Applications】Pi 5 is a full-size Pi computer using silicon built in-house at Pi. The RP1 “southbridge” provides the bulk of the I/O capabilities for Pi 5. Pi 5 is more friendly and convenient in the development of Internet of Things, Web development, machine identification, automatic control and other electronic equipment applications and network.
  • 【 Faster CPU, Better GPU 】 Pi 5 features a Broadcom BCM2712 64-bit quad-core Arm Cortex-A76 processor running at 2.4GHz, it delivers a 2–3× increase in CPU performance relative to RaspberryPi 4. The 800MHz VideoCore VII GPU is compatible to OpenGL ES 3.1 and Vulkan 1.2, substantial uplift in graphics performance. Pi 5 Offers lightning-fast CPU speed, a PCI Express interface, a Real Time Clock (RTC) and a power button and runs significantly cooler than Pi 4.

Spring Boot mit Spring Security

Spring Boot verwendet häufig standardmäßig Port 8080; server.port kann ihn ändern. Siehe die Webserver-Dokumentation. Bei bestimmten aktivierten Standard-Security-Konfigurationen lautet der Benutzer user; das Passwort wird zufällig erzeugt und beim Start ausgegeben. Die Spring-Boot-Dokumentation weist jedoch auf die Abhängigkeit von Version und Konfiguration hin.

spring.security.user.name=...
spring.security.user.password=...
server.port=8080

Explizite Werte in diesen Dateien, Umgebungsvariablen oder einer eigenen SecurityFilterChain haben Vorrang. Deshalb funktioniert user nicht automatisch bei jeder Spring-Boot-Anwendung.

Spring Boot und die H2-Konsole

Die Entwicklungsoberfläche liegt häufig unter http://localhost:8080/h2-console; der Pfad kann mit spring.h2.console.path geändert werden. Die Spring-Boot-Dokumentation zur SQL-Unterstützung beschreibt sie als Entwicklungswerkzeug, nicht als ungeschützte Produktionsoberfläche.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Benutzername, Passwort und JDBC-URL hängen von spring.datasource.username, spring.datasource.password, dem In-Memory- oder Dateimodus und der Security-Konfiguration ab. sa mit leerem Passwort kommt in lokalen Beispielen vor, ist aber kein universeller Login.

Quick Recap

Bestseller No. 1
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
Includes Raspberry Pi 5 with 2.4Ghz 64-bit quad-core CPU (8GB RAM); CanaKit Turbine Black Case for the Raspberry Pi 5
$259.95
Bestseller No. 2
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM); Includes Pre-Loaded 32GB EVO+ Micro SD Card (Class 10), USB MicroSD Card Reader
$159.99
Bestseller No. 4
CanaKit Raspberry Pi 5 Desktop PC with SSD (Fully Assembled) (256 GB SSD)
CanaKit Raspberry Pi 5 Desktop PC with SSD (Fully Assembled) (256 GB SSD)
Fully assembled for plug-and-play operation; Includes Raspberry Pi 5 with 8GB RAM; 256 GB PCIe Pi NVMe SSD (Pre-loaded with Pi 64-Bit OS)
$339.97
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Wenn kein Login funktioniert

  1. Speichern Sie zuerst Logs und Konfiguration der identifizierten Anwendung.
  2. Suchen Sie nach password, username, initial password, generated security password und login.
  3. Prüfen Sie .env, application.properties, application.yml, config/, IDE-Run-Konfigurationen, Datenverzeichnisse und Secret-Manager.
  4. Ordnen Sie HTTP-Statuscodes richtig ein: 401 bedeutet fehlende oder ungültige Authentifizierung, 403 fehlende Berechtigung, 404 einen nicht vorhandenen Pfad.
  5. Bei Docker prüfen Sie Volume- und Bind-Mounts; dort können die persistenten Benutzer liegen.
  6. Setzen Sie Passwörter nicht durch blindes Löschen interner Dateien zurück. Sichern Sie das Datenverzeichnis und verwenden Sie den dokumentierten Reset-Weg der jeweiligen Anwendung.

Sicherheitscheck für lokale Dienste

  • „Lokal“ ist nur dann auf den eigenen Rechner begrenzt, wenn der Dienst tatsächlich an 127.0.0.1 oder ::1 gebunden ist. Ein Binding an 0.0.0.0 kann ihn im Netzwerk erreichbar machen.
  • Bei Docker bindet 127.0.0.1:8080:8080 den Port grundsätzlich nur an Loopback; 8080:8080 kann ihn auf allen verfügbaren Host-Interfaces veröffentlichen. Firewall- und Host-Konfiguration bleiben maßgeblich.
  • Verwenden Sie keine echten Produktionspasswörter in lokalen Konfigurationsdateien oder öffentlichen Repositories.
  • Betreiben Sie Jenkins, Tomcat Manager und die H2-Konsole nicht ungeschützt über ein öffentlich erreichbares Interface.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Apache TomcatDockerh2JenkinslocalhostPort 8080Spring Boot

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.