First create a ec2-user with latest ami(amazon linux machine) connect to ec2-user and type the below commands sudo su - amazon-linux-extras install java-openjdk11 -y wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key yum install -y jenkins chkconfig jenkins on systemctl enable jenkins.service systemctl restart jenkins systemctl status jenkins cat /var/lib/jenkins/secrets/initialAdminPassword #Perform a quick update on your instance: sudo yum update -y #Install git in your EC2 instance sudo yum install git -y #Check git version git version Find the path where java is installed using the below command which java copy the bin directory and update the java path in global tool configuration which git copy the bin directory and update the git path in global tool configuration