Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Jenkins.war in Ubuntu 12.04

Tags:

jenkins

ubuntu

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

like image 599
RCBian Avatar asked Jan 23 '26 20:01

RCBian


2 Answers

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).

like image 94
kkamilpl Avatar answered Jan 26 '26 09:01

kkamilpl


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

like image 35
apesa Avatar answered Jan 26 '26 09:01

apesa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!