πŸš€ Installing Jenkins on Amazon Linux

βœ… Prerequisites

πŸ‘‰ Before you begin to Install Jenkins Linux, ensure you have:

  • Basic Linux knowledge

  • AWS EC2 instance (Amazon Linux 2)

  • Internet access

  • SSH access to the instance

πŸ›  Step 1: Update Your System

sudo yum update -y

β˜• Step 2: Install Java (Required for Jenkins)

sudo yum install java-17-amazon-corretto -y

βœ… Verify Java version:

java -version

πŸ“¦ Step 3: Add Jenkins Repository

# Add the Jenkins repo using the following command:
sudo wget -O /etc/yum.repos.d/jenkins.repo
https://pkg.jenkins.io/redhat-stable/jenkins.repo

# Import a key file from Jenkins-CI to enable installation from the package:
sudo rpm –import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key

sudo yum upgrade

🧰 Step 4: Install Jenkins

sudo yum install jenkins -y

πŸ”„ Step 5: Start and Enable Jenkins

# Start Jenkins as a service:
sudo systemctl start jenkins
# Start Jenkins as a service:
sudo systemctl enable jenkins
# You can check the status of the Jenkins service using the command:
sudo systemctl status jenkins

🌐 Step 6: Allow Port 8080 in Security Group

πŸ” Steps to allow traffic on port 8080:

  1. Go to EC2 Dashboard
  2. Select your Instance
  3. Click on the linked Security Group
  4. Click Edit Inbound Rules
  5. Click Add Rule:
    • Type: Custom TCP
    • Port Range: 8080
    • Source: Anywhere (or your IP)
  6. Click Save Rules

βœ… Now your Jenkins server is publicly accessible via port 8080.

πŸ” Step 7: Access Jenkins UI

Open browser:

http://<your-ec2-public-ip>:8080

Get the initial password:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Paste it into Jenkins and complete the setup wizard.

πŸ”Œ Optional: Install Plugins

Choose β€œInstall Suggested Plugins” when prompted during setup. These plugins will help you get started faster.

πŸ“Œ Quick Summary

Step Task
1 Update system packages
2 Install Java
3 Add Jenkins repository
4 Install Jenkins
5 Start Jenkins service
6 Allow port 8080 via EC2 Security Group
7 Access Jenkins via browser

πŸŽ‰ You’re Done!

βœ… You’ve successfully Install Jenkins Linux on Amazon EC2!
Now, you can start building CI/CD pipelines, manage your automation jobs, and streamline your deployments.
Continue exploring Jenkins plugins, pipeline scripts, and integrations to make the most out of your setup.
This is just the beginningβ€”Install Jenkins Linux is your first step toward mastering DevOps automation.

https://academy.srtechops.com/wp-content/uploads/2025/01/Remainder-App-Technology-Logo.mp4

Devops Multi cloud Training

Choose the training style that fits your schedule β€” Self-Paced or Live Interactive Sessions. Both include hands-on projects, expert support, and lifetime access.

Feature Self-Paced Training Live Training
🎯 Mode πŸŽ₯Pre-Recorded Session πŸ§‘β€πŸ«Live Class + Recordings
πŸ’Ό Projects πŸ•’ Weekend Real-Time Projects πŸ“… Weekdays + Weekend Real-Time Projects
❓ Doubt Clearing πŸ“ž Weekend Live Support Session 🧠 Anytime Doubt Clearing Session
πŸ‘₯ Career Support & Mentorship ❌ No βœ… Yes
πŸŽ“ Global Certification Training ❌ No βœ… Yes
πŸ”‘ Access ♾️ Lifetime Access ♾️ Lifetime Access
πŸ’° Fees β‚Ή4,999 (2 x β‚Ή2,500) β‚Ή7,999 (2 x β‚Ή4,000)
ℹ️ For More Info Explore Self-Paced Training
Explore Live Training

Leave a Comment

Your email address will not be published. Required fields are marked *