Thursday 19 June 2014

Steps to install Jenkins on CentOS 6




Prerequisites

Run steps from link http://itinsteps.blogspot.in/2014/06/steps-to-setup-oracle-java-jdk-7u60-on.html to install Java on CentOS 6.



Change the user to root

sudo -s



Install the Jenkins repository

yum -y install wget
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key



Install Jenkins

yum -y install jenkins



Configure Jenkins to start with the system   

chkconfig jenkins on



Configure Jenkins to start now

service jenkins start



Open Port 8080 in iptables

vi /etc/sysconfig/iptables
-A INPUT -p tcp -m multiport --dport 8080 -m comment --comment "Open port for Jenkins" -j ACCEPT
service iptables restart



Test the URL for Jenkins at http://<server-IP-address>:8080/



No comments:

Post a Comment