How to install Jenkins in Centos7
This tutorial explains the steps to install Jenkins in Centos7 server.
Step1: Install epel repository
#yum install epel-release
Step2: Update yum repositories
#yum update
Step3: Install Java
#yum install java-1.8.0-openjdk.x86_64
Step4: Confirm the installed Java version
#java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
Step5: Configure Jenkins repository
#wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
Step6: Import the gpg key for Jenkins
#rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
Step7: Install Jenkins
#yum install jenkins
Step8: Start Jenkins service
#systemctl start jenkins.service
Step9: Enable Jenkins to run in the system startup
#systemctl enable jenkins.service
Step10: Jenkins web portal is now available in the below URL.
http://<Server-IP>:8080
That's all…..