๐Ÿš€ 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.

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.

FeatureSelf-Paced TrainingLive 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 InfoExplore Self-Paced Training
Explore Live Training

Leave a Comment

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

Open chat
Hello, Good day!!
How can we help you?