I followed as per the jenkins installation documentation for redhat. After installing the packages, when I start the jenkins service with systemctl enable --now jenkins, it failed.
When I check with journalctl, it shows because of port binding failed.
When I check the sudo netstat -tulpn, the 8080 port is already used with ttyd process and can’t kill because this is session one.
I read the installtion error from community forum and tried to install their ways. But, didn’t work till now.
Yes, I did the same as you. I followed the Jenkins documentation but I only face this error.
When I check with journalctl, it shows
Oct 20 09:20:06 jumphost.stratos.xfusioncorp.com jenkins[9906]: Caused: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080. But 8080 is used by ttyd session. I can’t kill.
I have tried to edit the port number as 8081 for Jenkins config, it worked. I can start the jenkins service. But, can’t open their provided UI because they have bind with 8080.
I’ve just checked and was able to install Jenkins successfully. I think you might have tried installing it on the jumphost instead of the Jenkins server, that’s likely why you got the “port 8080 already in use” error. Please try again by SSH into the Jenkins server provided in the task.