Not able to install jenkins on centOS

I am not able to install the jenkins on the CentOS.

Hello @kumarmishra651
Kindly execute below given commands one by one:

sudo yum install epel-release -y
sudo yum install java -y
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate
sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install jenkins -y

Edit /lib/systemd/system/jenkins.service file and change Jenkins port to 8090 by updating Environment="JENKINS_PORT=" variable value.

sudo vi /lib/systemd/system/jenkins.service

It should look like this:

Environment="JENKINS_PORT=8090"

Once done start Jenkins service.

sudo systemctl start jenkins

Thanks,
KodeKloud Support

1 Like

I am not able to start the jenkins on the UI my jenkins is active and running ,
Not able to find the address to lunch the jenkins.
example : 142.65.43.123:8090

Hi @kumarmishra651
Don’t worry about that, we provided a tab called “Jenkins” in the next question which is available at top right above the terminal.

Regards,
KodeKloud Support

1 Like

If you wanna open JENKINS UI by entering the port “8090” then go with the Additional option. You have to enter the correct port, in your case it’s “8090” and click on the “view port” button. It will open the JENKINS UI page in the new tab.

Hope this information is helpful to you.

image-281

1 Like

@Tej-Singh-Rana Thank a lot for providing instructions. IT worked very well. Can you also explain us what is difference in instructions put it in official page and the instructions shared in this thread.

If I want to open jenkins UI console url in my local browser( I mean internet), Can you pls help us with firewall instructions and how to achieve this.

Please check this official doc: -
Windows (jenkins.io)

Actually, it’s not taking the PORT which we changed in the config file.
So we are changing the PORT in the unit file to make it work.

that jenkins tab are not working