Install Jenkins on Amazon Linux EC2 Instance

1. Login to your Amazon Linux instance.

2. Become root using ‘sudo su -‘ command.

3. Update your repositories

#yum update

4. Get Jenkins repository

#wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo

5. Get Jenkins repository key

  #rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key

6. Install Jenkins package

 #yum install jenkins

7. Start Jenkins

#service jenkins start

8. Start automatically at system startup

#chkconfig jenkins on

9. Open browser and navigate to http://<Elastic-IP>:8080/. You will see Jenkins Dashboard.

Viet Luu has written 146 articles

Leave a Reply