RCBian
RCBian

Reputation: 1080

Installing Jenkins.war in Ubuntu 12.04

I want to install jenkins.war in Ubuntu.I have downloaded jenkins.war and it is place under home directory.What command do i need to write in the terminal to install jenkins.Please help

Upvotes: 3

Views: 4872

Answers (2)

apesa
apesa

Reputation: 12443

There are a couple ways to install and run a WAR file. In ubuntu the fastest way would be to install Tomcat 7 like this.

sudo apt-get install tomcat7

You will also have to have Java installed. Once you have both Java and Tomcat installed you should add a couple lines to your .bashrc file like this.

export JAVA_HOME=/usr/lib/jvm/default-java
export CATALINA_HOME=/path/to/tomcat

Then start Tomcat like this.

$CATALINA_HOME/bin/startup.sh

The try this URL and you should see the Apache Tomcat index page.

 your_IP_address:8080

Now, to deploy your WAR file in Tomcat you just need to copy the WAR file into the Webapps directory and restart Tomcat

Upvotes: 1

kkamil
kkamil

Reputation: 2595

The easiest way to install Jenkins on Ubuntu is to add Jenkins repository. Please follow the steps described in official Jenkins web page. With proposed solution, you will not need to install and setup any additional applications (except java).

Upvotes: 1

Related Questions