fbpx

🚀 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?