How to install Jenkins with 5 easy steps on RedHat

Let’s understand how to install Jenkins with 5 easy steps

But before installing Jenkins first lets understand what is Jenkins exactly ?

What is Jenkins ? 

First of all let me tell you Jenkins is a free, open sourced devops automation tool. Its written in Java with plugins built for Continuous Integration purpose.

Jenkins is used to make and test your software projects continuously, making it easier for developers to integrate changes to the project, and making it easier for users to urge a fresh build. Jenkins also allows you to continuously deliver your software by integrating with an outsized number of testing and deployment technologies.

By using Jenkins, organizations can accelerate the software development process through automation. Jenkins integrates development life-cycle processes of all kinds , including build, document, test, package, stage, deploy, static analysis and much more.

Jenkins achieves Continuous Integration with the help of plugins. Plugins allows the blending of various DevOps stages. If you wish to integrate a selected tool, you’d wish to put within the plugins for that tool. For example: Git, Maven 2 project, Amazon EC2, HTML publisher etc.

Why Jenkins?

Below things that make Jenkins special from other continuous integration tool.

  • Jenkins is widespread with great community support available.
  •  It is easy to understand and implement.
  • It has 1000+ plugins to ease your work. If a plugin does not exist, you can code it and share to community.
  • It is absolutely free and open sourced.
  • It is built with Java and hence, it is portable to all the major platforms.

What is CI – CD ?

Continuous Integration: is the practice of testing each change done to to your code base automatically and as early as possible.

Continuous Deployment: follows the testing that happens during Continuous Integration and pushes changes to a staging or production system. This makes sure a version of your code is accessible in the least times

How to install Jenkins with 5 easy steps, Lets start it.

Step 1: Add Jenkins repository.

By default Jenkins package is not available in CentOS and RHEL repositories. So we need to add jenkins repository. Use below commands it add it.

[root@jenkins ~]# wget -O /etc/yum.repos.d/jenkins.repo
[root@jenkins ~]# rpm --import

Step 2: Install Jenkins and Java.

Use below command to install Jenkins and java.

[root@jenkins ~]# yum install jenkins java-1.8.0-openjdk –y

Step 3: Start and Enable Jenkins                                                    

Use below commands.

[root@jenkins ~]# systemctl start jenkins
[root@jenkins ~]# systemctl enable jenkins

Step 4: Allow required ports (80 and 8080) in linux firewall.

If firewall is up and running use below commands to allow this ports.

[root@jenkins ~]# firewall-cmd --zone=public --add-port=8080/tcp --permanent
[root@jenkins ~]# firewall-cmd --zone=public --add-service=http --permanent
[root@jenkins ~]# firewall-cmd --reload
[root@jenkins ~]#

Step 5: Access and test Jenkins.

Done.  ;-)  Now you can access and test Jenkins using below URL. You can configure Jenkins now.



In this article, we have performed installation of Jenkins On CentOS 7 and RHEL7 System.

If you feel this article helpful for you, please like, share and subscribe to


Recent Articles:

How to secure Linux server

How to install Jenkins with 5 easy steps

Download and install redhat linux 8 with 5 easy steps

5 Easy steps to know continuous integration and continuous deployment

What is lamp stack? How to install LAMP server on Centos7, Red Hat and Fedora with 12 easy steps

Thanks for visiting to

Suresh Dike

Suresh Dike I am Suresh, working on Cloud, DevOps, Linux, Firewalls,Docker and Kubernetes. Believes in sharing the knowledge.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.