Uncodemy Logo ← Back to Course
Jenkins · Topic 3 of 15

Jenkins Installation

Accessing Jenkins

Once installed, Jenkins is opened in the browser using: publicIP:8080

Default Jenkins install path: /var/lib/jenkins

Step-by-Step Installation (AWS + Redhat/Amazon Linux)

  1. Launch a Linux server on AWS and add a security group rule for Custom TCP, port 8080.
  2. Install Java:
    amazon-linux-extras install java-openjdk11 -y
  3. Get the Jenkins repo and signing key (copy these commands from jenkins.io → Download → Redhat):
    sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
    sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
  4. Install Jenkins:
    yum install jenkins -y
  5. Check status & start Jenkins:
    systemctl status jenkins   # shows inactive/dead initially
    systemctl start jenkins    # or: systemctl restart jenkins
  6. Retrieve the initial admin password from the path Jenkins shows, unlock Jenkins, and click "Install suggested plugins".

Automating Setup with a Shell Script

Doing this manual setup every time is time-consuming. Instead, put all the commands into a shell script:

vim jenkins.sh   # add all installation commands, then :wq

Give it executable permission and run it:

chmod +x jenkins.sh
./jenkins.sh     # or: sh jenkins.sh

Master Jenkins & DevOps with Uncodemy

Hands-on live training, real projects, and placement support — become job-ready in DevOps.

Enroll in DevOps Training →