Jenkins Installtion Guide: Step by Step Instruction For Linux

This guide will help in Jenkins installation using step by step instructions. It explains the different methods to setup jenkins on a Linux server.

Hardware Requirements

Jenkins server should meet the following minimum hardware requirements to run smoothly.

  1. 2GB RAM
  2. 30GB Hard disk (Better to have a additional disk for storing Jenkins data)

Note: This tutorila will work only on Redhat based Linux systems (Redhat & centos)

Prerequisites

Following are the two mimimim requirements for Jenkins setup.

  1. Java
  2. Git (Not mandatory)

Java Installation

Java is a primary requirement for Jenkins as it is a java based application.

Step 1: Install java jdk

Step 2: Verify java installation

Git Installation

git is not a mandatory requirement. However, most of your Jenkins operations will be based on git. So it is better to have it installed on the Jenkins server.

Step 1: Install git

Step 2: Verify git installation

Jenkins Installation Methods

Jenkins can be installed in the following ways

  1. Using yum repository
  2. Using jenkins war file

Jenkins Installation Using yum Repo

Step 1: Add the Jenkins repo to the server

Step 2: Using the following command, find the specific version of Jenkins that you need.

Step 3: Install jenkins by following the below syntax.

For example,

Step 4: Start and enable jenkins service

Step 4: check the jenkins service status

You will be able to access Jenkins on port 8080.

Jenkins Installation Using Jenkins war File

Step 1: Download the latest jenkins war file from here

Step 2: Run the jar

If you want to run jenkins on a custom port, execute the jar with –port flag as shown below.

Other Jenkins Resources:

  1. How To Backup Jenkins Data And Configurations
  2. How To Setup Custom UI Theme For Jenkins

Related

Rails form_for helper used the active record class for handling the forms and saving to database. However in some cases…

Read more

Linux shell is an interactive mode to run the Linux commands. You can type commands in terminal using keyboard and…

Read more

Converting a .pem to .ppk format is a matter of one line code. First, you need to have puttygen installed on your…

Read more

Internet is huge! Help us find great content

About

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.