An error was reported when starting Jenkins, localhost rejected our connection request

Problem: According to the article, I installed Jenkins all the way to next, and when I opened Jenkins using http://localhost:8080/, an error was reported, indicating that localhost rejected our connection request

I found the reason

1. Restart Jenkins, enter net start jenkins under cmd

An error is reported when starting Jenkins

2. Then find the error information file in the Jenkins directory, the file name is jenkins.err.log

报错:Running with Java class version 62 which is not in the list of supported versions: [52, 55, 61]. Run with the --enable-future-java flag to enable such behavior. See https://jenkins.io/redirect/java-support/

It means that the version of java is not good, because the latest version I installed is 18, I checked the supported version, and it supports Java8 or 11, so I downloaded a new java 11 (tired)

3. After re-downloading, go to the task manager to start Jenkins. At this time, it can be started successfully (in the first step, it was also started like this, and an error was reported)

4. Then use http://localhost:8080/ and you're done

Guess you like

Origin blog.csdn.net/yuan_ahui/article/details/125951055
Recommended