Installing Jenkins on Centos 7

So guide how to get jenkins up and running on centos 7

1. First install it !

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

 

2. Install java

 sudo yum install java-1.7.0-openjdk

 

3. Open firewall

 

firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload

 

4. start it !

sudo /etc/init.d/jenkins restart
systemctl restart jenkins.service

one should work 🙂

 

5. Visit it http://ip-addre:8080

 

i follewed this guide https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins

  4 comments for “Installing Jenkins on Centos 7

  1. Larry Keane
    January 27, 2015 at 10:50 pm

    Interestingly enough, this article is very similar to the one that I followed.
    So if anyone has Ubuntu like me and wants to install Jenkins, you can easily do that by following: https://www.rosehosting.com/blog/install-jenkins-on-an-ubuntu-14-04-vps/

    • Younes Ouadi
      February 12, 2015 at 6:02 pm

      Many thanks. The procedure is perfect.

  2. Prithivi S
    July 23, 2015 at 12:56 pm

    Its really nice article to install jenkins on Centos 7… Many thanks appreciate it.

  3. Rafael Rojas
    February 10, 2016 at 5:52 pm

    Thank you for sharing your knowledge

Leave a Reply

%d bloggers like this: