Jenkins With Tomcat 7 installation in Ubuntu

Jenkins With Tomcat 7 installation in Ubuntu

Oracle-Java Installation

sudo apt-get update
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
sudo ln -s /usr/lib/jvm/java-8-oracle /usr/lib/jvm/default-java

Tomcat Installation with Jenkins

sudo apt-get install tomcat7 -y
cd /var/lib/tomcat7/webapps/
sudo wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
sudo chmod 655 jenkins.war

sudo service tomcat7 restart
sudo mkdir -p /usr/share/tomcat7/.jenkins
sudo chown tomcat7:nogroup /usr/share/tomcat7/.jenkins
sudo service tomcat7 restart

Access:

http://server-ip:8080/jenkins/

Copy the Password from:

sudo vi /usr/share/tomcat7/.jenkins/secrets/initialAdminPassword

Nginx Installation using apt-get in Ubuntu:

sudo apt-get install nginx -y

Access:
http://localhost/                                 
OR
http://server-ip/

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s