Lab2: 6th question solution

Follow the following commands to avoid an error.

  1. sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate
  2. sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
  3. sudo yum -y install epel-release
  4. sudo yum -y install java-11-openjdk
  5. sudo yum -y install jenkins
  6. sudo systemctl start jenkins
  7. sudo systemctl status jenkins
  8. sudo vi /etc/sysconfig/jenkins [in this file find out JENKINS_PORT=“8080”. now change the port number to 8090 and then exit from the file.]
  9. sudo systemctl stop jenkins
  10. sudo systemctl start jenkins

That’s it. The question got correct.

Regards
G Rajasekhar

Thanks for sharing your experience @Raja23 !

1 Like

Hello Raja,

Still getting the error message “Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” and “journalctl -xe” for details.” . Could you please help me in resolving it.