Jenkins requires Java7 or above and Servlet 3.1 to function. Java8 is recommended. Jenkins requires a fair amount of memory to operate well. Smaller installations should start around 256MB-1GB.
To check your current kernel version, open a terminal and use uname -r to display your kernel version:
$ uname -r
3.10.0-229.el7.x86_64
On RPM-based distributions, such as Red Hat Enterprise Linux (RHEL), CentOS, Fedora or Scientific Linux, you can install Jenkins through yum.
Make sure your existing packages are up-to-date.
$ sudo yum update
Download and Install JDK 8.0
# # # # # # # # # Download and Install JDK 8.0 using tar Ball # # # # # # # # # # # # #
$ yum install wget -y
$ cd /opt/
$ mkdir devops
$ cd devops
$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz
$ tar -zxvf jdk-8u191-linux-x64.tar.gz
$ export JAVA_HOME=path to jdk
$ export PATH=$JAVA_HOME/bin:$PATH
$ echo $JAVA_HOME
$ java -version
# # # # # # # # # OR # # # # # # # # # # # # #
# # # # # # # # # Download and Install JDK 8.0 using RPM file # # # # # # # # # # # # #
$ yum install wget -y
$ wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
$ rpm -ivh jdk-8u131-linux-x64.rpm
$ java -version
To use this repository, run the following command:
$ sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
$ sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
With that set up, the Jenkins package can be installed with:
$ yum install jenkins
To stop the Jenkins Services:
$ systemctl stop jenkins
To start the Jenkins Services:
$ systemctl start jenkins
To verify if the Jenkins Services are running or not:
$ ps -eaf | grep -i jenkins
To know the jenkins used directory location, refer the process log of following commands
$ ps -eaf | grep -i jenkins
What does jenkins package do?
Disable the firewall
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload
firewall-cmd --list-all
Download and Install JDK 8.0 from following url
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Set the JAVA_HOME in system environment variable
Download the Latest Jenkins from http://mirrors.jenkins-ci.org/windows-stable/latest and install
To check if windows jenkins services are running or not
Type "services.msc" on run commands
and look for jenkins service and their status