Installing Jenkins on Amazon Linux

, posted

Step 1 - Setup the repository

First run update

sudo yum update -y
sudo wget -O /etc/yum.repos.d/jenkins.repo

sudo rpm --import

Step 2 - Install Java

Note : Jenkins is not compatible with Java 1.8 so go with java-11

yum install java-11-openjdk java-11-openjdk-devel -y

Step 3 - Install Jenkins

yum install Jenkins -y

Step 4 - Check status

systemctl status jenkins

Step 5 - Start Jenkins

systemctl start jenkins

Check open ports

netstat -tulpn

Open the DNS address in you browser tab with port no the java is listening on and you should be good to go.

Your Signature