|
|
(14 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | {{Jetty}}
| + | #REDIRECT [[Jetty/Starting]] |
− | | + | |
− | == Introduction ==
| + | |
− | The following provides quick instructions for downloading, installing, and running the latest ''binary'' version of Jetty 7. Links to instructions for other versions of Jetty can be found in the [[#Installation Instructions for Other Versions]].
| + | |
− | | + | |
− | == Prerequisites ==
| + | |
− | | + | |
− | === Hardware ===
| + | |
− | | + | |
− | * 7.1 MB of disk space for Jetty source
| + | |
− | * 7.3 MB for Jetty 7 binaries
| + | |
− | | + | |
− | === Operating System ===
| + | |
− | | + | |
− | * Any operating system that supports J2SE 1.5 or greater.
| + | |
− | | + | |
− | === Environment ===
| + | |
− | | + | |
− | * J2SE 1.5 or [http://java.sun.com/javase/downloads/index.jsp greater]
| + | |
− | | + | |
− | == Download and Unpack ==
| + | |
− | | + | |
− | # Download the latest Jetty from [http://www.eclipse.org/jetty/downloads.php Eclipse]. From the download site, select the version you want and follow the prompts to '''Save''' it on your system.
| + | |
− | # Unzip it into a directory of your choice. Now it is ready to start running.
| + | |
− | | + | |
− | === Starting Jetty ===
| + | |
− | | + | |
− | To start Jetty open a command shell, go to your Jetty installation directory, and type:
| + | |
− | java -jar start.jar
| + | |
− | | + | |
− | This starts Jetty running on port 8080.
| + | |
− | | + | |
− | {{warn
| + | |
− | |Jetty will not start if another process is using port 8080. The port number can be changed by editing the <tt>$JETTY_HOME/etc/jetty.xml</tt> file. Please see the [[#Setting Jetty's Port]] section below or for more details see [[Configuring Jetty]]. The rest of the instructions in this wiki will assume that you are using port 8080}}
| + | |
− | | + | |
− | === Stopping Jetty ===
| + | |
− | | + | |
− | From the command shell where Jetty is running type: <tt><ctrl-c></tt>.
| + | |
− | | + | |
− | === Testing Jetty ===
| + | |
− | | + | |
− | When Jetty starts, it deploys a test web application on port 8080. To check if Jetty is running properly navigate to the <var>test</var> URL from a browser. For example:
| + | |
− | | + | |
− | http://localhost:8080/test
| + | |
− | | + | |
− | {{note
| + | |
− | |If you started Jetty on another host, substitute that host name for <var>localhost</var>. If you used a different port number you will also need to change <var>8080</var> to the correct number. Unless otherwise noted, the rest of the instructions in this wiki will assume that you are using <var>localhost</var> and port <var>8080</var>
| + | |
− | }}
| + | |
− | | + | |
− | === Setting Jetty's Port ===
| + | |
− | | + | |
− | To change Jetty's default port, edit <tt>$JETTY_HOME/etc/jetty.xml</tt> and change the port number in this line, then start Jetty:
| + | |
− | <source lang="xml">
| + | |
− | <Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set>
| + | |
− | </source>
| + | |
− | Alternatively you can set the port on the command line. Please see [[Configuring Jetty]] for more details.
| + | |
− | | + | |
− | == Installation Instructions for Other Versions ==
| + | |
− | | + | |
− | To install and run the version you downloaded, locate your version in the table and follow the instructions:
| + | |
− | {| class="jetty-table"
| + | |
− | |+ Installation instructions for other Jetty versions and distributions
| + | |
− | ! Version
| + | |
− | ! Installation Instructions
| + | |
− | |-
| + | |
− | | Jetty-7 source
| + | |
− | | [[Building from Source]]
| + | |
− | |-
| + | |
− | | Jetty-6 or older source
| + | |
− | | [http://docs.codehaus.org/display/JETTY/Building+from+Source Building from Source]
| + | |
− | |-
| + | |
− | | Jetty-6 or older binaries
| + | |
− | | [http://docs.codehaus.org/display/JETTY/Quick+Start Using the binary]
| + | |
− | |-
| + | |
− | | Jetty RPM
| + | |
− | | [http://docs.codehaus.org/display/JETTY/Using+the+Jetty+RPMs Using the Jetty RPMs]
| + | |
− | |-
| + | |
− | | Jetty DBM
| + | |
− | | [http://docs.codehaus.org/display/JETTY/Debian+Packages Jetty Debian Packages]
| + | |
− | |-
| + | |
− | | Hightide
| + | |
− | | [http://docs.codehaus.org/display/JETTY/Hightide+Documentation Quick Start Guide]
| + | |
− | |}
| + | |
− | | + | |
− | == Additional Resources ==
| + | |
− | | + | |
− | * [[Jetty/Getting_Started/Installing_Jetty-7.0.x|Installing Jetty-7.0.x]]
| + | |
− | * [[Configuring Jetty]]
| + | |