Install Jenkins in Amazon Linux2
Dec 07, 2020 Janaki Mahapatra, Installation
# Step1. Install Java on Amazon Linux
sudo amazon-linux-extras install java-openjdk11
# Step 2. Download Jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
# Step 3.
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
# Step4.
sudo yum install jenkins -y
sudo service jenkins start
Connect to http://your_server_public_DNS:8080 from your favorite browser. You will be able to access Jenkins through its management interface
Also you can find the reference here https://d1.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf