文章参考
http://jimichan.iteye.com/blog/6011561 download jetty
Jetty-7 eclipse | 1.5- | HTTP/1.1 RFC2616 | 2.5 | 2.1 | Stable | org.eclipse.jetty |
url:
版本
然后解压:D:\jetty
在解压目录中执行
D:\jetty\jetty-distribution-8.0.4.v20111024>java -jar start.jar etc/jetty.xml
会输出
- WARN: Argument 'etc/jetty.xml' specified multiple times. Check start.ini?
-
Use "java -jar start.jar --help" for more information.
-
2012-02-01 19:44:43.681:INFO:oejs.Server:jetty-8.0.4.v20111024
-
2012-02-01 19:44:43.702:INFO:oejdp.ScanningAppProvider:Deployment monitor D:\je
-
ty\jetty-distribution-8.0.4.v20111024\webapps at interval 1
-
2012-02-01 19:44:43.707:INFO:oejdp.ScanningAppProvider:Deployment monitor D:\je
-
ty\jetty-distribution-8.0.4.v20111024\contexts at interval 1
-
2012-02-01 19:44:43.712:INFO:oejd.DeploymentManager:Deployable added: D:\jetty\
-
etty-distribution-8.0.4.v20111024\contexts\test.xml
-
2012-02-01 19:44:43.778:INFO:oejw.WebInfConfiguration:Extract jar:file:/D:/jett
-
/jetty-distribution-8.0.4.v20111024/webapps/test.war!/ to C:\Users\kinfinger\Ap
-
Data\Local\Temp\jetty-0.0.0.0-8080-test.war-_-any-\webapp
-
2012-02-01 19:44:44.644:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
-
/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
-
/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
-
2012-02-01 19:44:44.646:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
-
/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
-
/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
-
2012-02-01 19:44:44.647:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
-
/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
-
/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
-
2012-02-01 19:44:44.648:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
-
/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
-
/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
-
2012-02-01 19:44:44.649:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
-
/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
-
/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
-
2012-02-01 19:44:44.749:INFO:oejhs.SslContextFactory:No keystore or trust store
-
configured. ACCEPTING UNTRUSTED CERTIFICATES!!!!!
-
2012-02-01 19:44:44.912:INFO:oejs.TransparentProxy:TransparentProxy @ /javadoc-
-
roxy to
-
2012-02-01 19:44:44.914:INFO:oejd.DeploymentManager:Deployable added: D:\jetty\
-
etty-distribution-8.0.4.v20111024\contexts\javadoc.xml
-
2012-02-01 19:44:44.925:INFO:oejs.AbstractConnector:Started SelectChannelConnec
-
or@0.0.0.0:8080 STARTING
-
2012-02-01 19:44:44.931:INFO:oejs.AbstractConnector:Started SelectChannelConnec
-
or@0.0.0.0:8080 STARTING
在执行这步之前你要确保自己安装了JDK。
etc/jetty.xml,它实际指向一个服务配置文件,该文件是用来设置jetty服务启动的系统配置信息。比如监听端口,发布某个目录下面的web应用,jndi的配置等等
就会看到结果
阅读(2126) | 评论(0) | 转发(0) |