Jetty - Startup

> Procedural Languages > Java > Java - Jetty (Web Server)

1 - About

Start of Jetty

3 - Command line Syntax

Usage: java -jar $JETTY_HOME/start.jar [options] [properties] [configs]
       java -jar $JETTY_HOME/start.jar --help  # for more information

4 - Start

it is not recommended to run Jetty from the $JETTY_HOME directory but from a separate {jetty.base} directory

cd jettyBase
java -jar $JETTY_HOME/start.jar

This will start the server on http://localhost:8080 as usual from the current directory, or a different directory, simply changing '.' to the path to that directory.

Advertising

5 - Configuration

List the resolved configuration that will be used to start Jetty.

java -jar start.jar --list-config

6 - Documentation / Reference