Wednesday, January 18, 2012

How to jetty on Debian

This tutorial is about how to install the jetty servlet engine on Debian.
To install jetty, type on the shell:
sudo apt-get install jetty libjetty-java libjetty-extra libjetty-extra-java
after installation, edit the file:
/etc/default/jetty
modify the line:
NO_START=1
to be:
NO_START=0
To listen to connections from localhost uncomment the line:
JETTY_HOST=$(uname -n)
The jetty home directory is in the sharable folder of the user binaries:
/usr/share/jetty
To stop jetty, type on the shell:
/etc/init.d/jetty stop
To start jetty, type on the shell:
/etc/init.d/jetty start
To deploy a web app, copy the WAR file to the folder
/var/lib/jetty/webapps
To configure the jetty server, edit the file:
/etc/jetty/jetty.xml

2 comments :

  1. Thanks . How to change jetty home path?

    ReplyDelete
    Replies
    1. Ok, I change symbolic link for "webapps".

      Delete