Operations 3 min read

How to Download, Install, Configure, and Start Jenkins on CentOS

This step‑by‑step guide shows how to install JDK 1.8, download the Jenkins RPM (from the official site or a Tsinghua mirror), install it, modify the config to run as root on port 8888, start the service, retrieve the initial admin password, and complete the Jenkins setup on a CentOS system.

The Dominant Programmer
The Dominant Programmer
The Dominant Programmer
How to Download, Install, Configure, and Start Jenkins on CentOS

Prerequisites

Jenkins requires JDK 1.8 or later; install JDK 1.8 before proceeding.

Download Jenkins RPM

Official download page: https://jenkins.io/zh/download/. If the site is unreachable, use the Tsinghua mirror https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/ and select the RPM under the redhat‑stable category for CentOS 6.

Install the RPM

Upload the RPM file to a directory on the CentOS host, then run: rpm -ivh jenkins-2.277.3noarch.rpm Replace the version string with the actual file name.

Configure Jenkins

Edit /etc/sysconfig/jenkins to change the service user to root and set the HTTP port to 8888 (e.g., JENKINS_PORT=8888) to avoid conflicts with other services.

Start the service

service jenkins start

Initial access

Open a browser at http://HOST_IP:8888. The first launch asks for the initial admin password.

Retrieve the password with:

cat /var/lib/jenkins/secrets/initialAdminPassword

Complete the setup

Enter the retrieved password, proceed to the custom Jenkins setup screen, and install plugins. The default plugin selection may be empty; plugin downloads can be slow, and a mirror can be configured later.

Create an administrator user, save the configuration, and the Jenkins dashboard becomes available.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

CI/CDDevOpsJenkinsCentOSRPM
The Dominant Programmer
Written by

The Dominant Programmer

Resources and tutorials for programmers' advanced learning journey. Advanced tracks in Java, Python, and C#. Blog: https://blog.csdn.net/badao_liumang_qizhi

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.