1. 程式人生 > >jetty官方文件翻譯第二章

jetty官方文件翻譯第二章

Chapter 2. Using Jetty Introduction

Table of Contents

Downloading Jetty
Running Jetty
Deploying Web Applications
Finding Jetty in Maven
You can use Jetty in many different ways, ranging from embedding Jetty in applications, launching it from different build systems, from different JVM-based languages, or as a standalone distribution. This guide covers the latter, a standalone distribution suitable for deploying web applications.

Downloading Jetty

Downloading the Jetty Distribution
Distribution Content
Downloading the Jetty Distribution

The standalone Jetty distribution is available for download from the Eclipse Foundation:

It is available in both zip and gzip formats; download the one most appropriate for your system. Notice that there are a number of other files with extensions of .sha or .md5 which are checksum files. When you download and unpack the binary, it is extracted into a directory called jetty-distribution-VERSION. Put this directory in a convenient location. The rest of the instructions in this documentation refer to this location as either JETTY_HOME or as $(jetty.home).

Distribution Content

A quick rundown of the distribution’s contents follows. The top-level directory contains:
Table 2.1. Contents
這裡寫圖片描述
這裡寫圖片描述

第二章,jetty使用介紹
內容表格:
下載jetty
執行jetty
部署web應用
在maven中找到jetty

你可以通過許多不同的方式來使用jetty,從應用中嵌入jetty,在不同的系統啟動它,從基於不同語言的虛擬機器,也可以獨立的啟動。本指南介紹了獨立部署一個應用的情況。

下載jetty套件
套件內容
下載jetty套件

提供了zip和gzip兩種格式的套件,下載一種最適合你係統的格式。(zip是windows下的壓縮格式,gzip是linux下的。)我們注意到還有其他格式的檔案,.sha和.md5,這些是校驗檔案。當你下載並且解壓了這個二進位制檔案後,內容檔案會被提取到 jetty-distribution-VERSION資料夾下,將這個目錄放在你想放的位置,剩下的檔案叫做jetty_home。

套件的內容
快速的分配出來的套件的內容如下:頂層的目錄包含如下: