Install Jenkins on CentOS

Install Jenkins
Install Jenkins

Install Jenkins on CentOS

This post helps you to install Jenkins on CentOS server. Jenkins is an open-source Continuous Integration server written in Java. It helps us to achieve an automated CI/CD process.

Install Jenkins

The installation is pretty straightforward. You just need to download the Jenkins official repo and install Jenkins using yum. The steps are given below:

wget -O /etc/yum.repos.d/jenkins.repo
rpm --import
yum upgrade
yum install epel-release java-11-openjdk-devel
yum install jenkins
systemctl daemon-reload

Start and enable Jenkins service

systemctl start jenkins
systemctl enable jenkins

Open the port 8080 on Firewall

Jenkins uses port 8080, so adjust the firewall using the firewall-cmd.

firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload

Unlock Jenkins

After allowing the Jenkins port, access Jenkins instance by browsing to http://<IP_ADDRESS>:8080 (Replace IP_ADDRESS with your server’s IP address). Then you will get an Unlock page like below:

Install Jenkins

Read the file /var/lib/jenkins/secrets/initialAdminPassword from Jenkins instance and paste the content to Jenkins unlock screen.

[root@jenk ~]# cat /var/lib/jenkins/secrets/initialAdminPassword
[root@jenk ~]#

Customize Jenkins

On the next page, you will be asked to install the necessary plugins. Please see the picture below:

Customize Jenkins

It is recommended to Install suggested plugins. It will install all necessary plugins that need to get the Jenkins work properly. You can always change or customize plugins later.

Create Admin User

On the next page, you need to create an admin user. Fill the fields with your desired admin username, password and email ID.

Create First Admin User

Instance Configuration

Next, you need to set up the Jenkins URL. It will be auto-filled in the respective field.

Instance Configuration

Finally, click on the Start using Jenkins button and complete the installation.

That’s it!

Also Read:

If you like this post and wish to receive more articles from us, please like our FB page: Grepitout

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at