Create a Continuous Integration Server With Jenkins On Ubuntu 14.04

https://hostpresto.com/community/tutorials/how-to-create-a-continuous-integration-server-with-jenkins-on-ubuntu-14.04/

Installing Prerequisite:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer

java -version

Installing Jenkins:

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c ‘echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list’
sudo apt-get update
sudo apt-get install jenkins

sudo service jenkins status

We know that Jenkins is running, let’s check whether Jenkins is already listening on port 8080:
sudo netstat -naptu | grep LISTEN | grep 8080


Installing Nginx:

sudo apt-get -y install nginx
sudo service nginx status

Configure nginx: