DevOps | Jenkins Tutorial for Beginners | Setup Jenkins Master On Centos 7 | Thetips4you
#Jenkins, #CentOs, #JenkinsMaster Hello Friends, Welcome back to my channel. In my previous videos , we have seen how to setup Jenkins on Raspberry pi, on windows machine and also how to run jenkins using docker containers. Today we are going to setup jenkins on centos machine. So you can make use of any of these options to run your jenkins master instance for continuous integration.
The pre – requisite for jenkins is Java. Check if your machine have Java installed, if not install Java using the command Yum install Java. Or you can install any specific version of java you want.
sudo yum install java
curl –silent –location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo
sudo rpm –import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
sudo systemctl start jenkins
systemctl status jenkins
sudo systemctl enable jenkins
sudo firewall-cmd –permanent –zone=public –add-port=8080/tcp
sudo firewall-cmd –permanent –zone=public –add-port=9917/tcp
sudo firewall-cmd –reload
great!. we have jenkins installed and it is running as a service now. You can see the jenkins status as active and running. Now lets add the exemption for the firewall to access the jenkins portal at the port 8080. In some cases the firewall is blocking the port so we are doing this step, incase if you are able to accesss the jenkins portal with out any issues, you can ignore this step.
=================================================
Follow me @:
https://www.instagram.com/thetips4you
https://www.youtube.com/channel/UCoOq…
https://www.facebook.com/thetipsforyou
http://www.thetips4you.com
======================================================
centos 7