JETTY
=====
The Jetty project is a 100% Java HTTP Server, HTTP Client
and Servlet Container.
这个Jetty项目是一个100%的java HTTP服务,HTTP 客户端和servlet容器
The Jetty @ eclipse project is based on the Jetty project at codehaus
这个Jetty @ eclipse项目是基于jetty项目之上的一个代号
http://jetty.codehaus.org
Ongoing development is now at the eclipse foundation
继续的发展是在eclipse网站上
http://www.eclipse.org/jetty/
Jetty @ eclipse is open source and is dual licensed using the apache 2.0 and
eclipse public license 1.0. You may choose either license when distributing
jetty.
jetty @ eclipse 是一个开源并且是双重授权使用apache2.0和eclipse公共许可1.0,你可以随意选择许可证分发jetty
BUILDING JETTY
建设jetty
==============
Jetty uses maven 2 as its build system. Maven will fetch
the dependancies, build the server and assemble a runnable
version:
jetty用maven2作为其构建系统.Maven Maven将取依赖关系,来构建这个可运行的服务和组装的版本
mvn install
RUNNING JETTY
运行 jetty
=============
The run directory is either the top-level of a binary release
or jetty-distribution/target/assembly-prep directory when built from
source.
使用运行这个默认配置
To run with the default options:
java -jar start.jar
查看帮助
To see the available options and the default arguments
provided by the start.ini file:
java -jar start.jar --help
To run with extra configuration file(s) appended, eg SSL
java -jar start.jar etc/jetty-ssl.xml
设置运行属性
To run with properties
java -jar start.jar jetty.port=8081
To run with extra configuration file(s) prepended, eg logging & jmx
java -jar start.jar --pre=etc/jetty-logging.xml --pre=etc/jetty-jmx.xml
在运行时设置运行参数
To run without the args from start.ini
java -jar start.jar --ini OPTIONS=Server,websocket etc/jetty.xml etc/jetty-deploy.xml etc/jetty-ssl.xml
to list the know OPTIONS:
java -jar start.jar --list-options