Install Jenkins on AWS

How can you easily setup Jenkins on AWS EC2 instance (Ubuntu)
Wed Jul 27, 2022

Easy Installation - My style :)

"Everything is out there you just need to look closely" — Shubham Londhe

Step - 1 Install Java

Update your system

sudo apt update
Install java
sudo apt install openjdk-11-jre
Validate Installation

java -version
It should look something like this

openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2) OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)

Step - 2 Install Jenkins

Just copy these commands and paste them onto your terminal.

curl -fsSL | sudo tee \   /usr/share/keyrings/jenkins-keyring.asc > /dev/null 
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ binary/ | sudo tee \   /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update 
sudo apt-get install jenkins

Step -3 Start jenkins

sudo systemctl enable jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins

Step - 4 Open port 8080 from AWS Console:
You are watching my videos, right ?

I think we are pretty much done here.


Shubham Londhe
Do Check Out Python For DevOps Course