Position:Home > work --jetty install

work --jetty install

 文章参考 http://jimichan.iteye.com/blog/601156 1 download  jetty

Jetty-7 eclipse

1.5-

HTTP/1.1 RFC2616

2.5

2.1

Stable

org.eclipse.jetty

url:  http://mirrors.ustc.edu.cn/eclipse/jetty/stable-8/dist/ 版本 jetty-distribution-8.0.4.v20111024.zip 然后解压:D:\jetty 在解压目录中执行 D:\jetty\jetty-distribution-8.0.4.v20111024>java -jar start.jar etc/jetty.xml 会输出
  1. WARN: Argument 'etc/jetty.xml' specified multiple times. Check start.ini?
  2. Use "java -jar start.jar --help" for more information.
  3. 2012-02-01 19:44:43.681:INFO:oejs.Server:jetty-8.0.4.v20111024
  4. 2012-02-01 19:44:43.702:INFO:oejdp.ScanningAppProvider:Deployment monitor D:\je
  5. ty\jetty-distribution-8.0.4.v20111024\webapps at interval 1
  6. 2012-02-01 19:44:43.707:INFO:oejdp.ScanningAppProvider:Deployment monitor D:\je
  7. ty\jetty-distribution-8.0.4.v20111024\contexts at interval 1
  8. 2012-02-01 19:44:43.712:INFO:oejd.DeploymentManager:Deployable added: D:\jetty\
  9. etty-distribution-8.0.4.v20111024\contexts\test.xml
  10. 2012-02-01 19:44:43.778:INFO:oejw.WebInfConfiguration:Extract jar:file:/D:/jett
  11. /jetty-distribution-8.0.4.v20111024/webapps/test.war!/ to C:\Users\kinfinger\Ap
  12. Data\Local\Temp\jetty-0.0.0.0-8080-test.war-_-any-\webapp
  13. 2012-02-01 19:44:44.644:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
  14. /,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
  15. /webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
  16. 2012-02-01 19:44:44.646:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
  17. /,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
  18. /webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
  19. 2012-02-01 19:44:44.647:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
  20. /,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
  21. /webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
  22. 2012-02-01 19:44:44.648:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
  23. /,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
  24. /webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
  25. 2012-02-01 19:44:44.649:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext
  26. /,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any
  27. /webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war
  28. 2012-02-01 19:44:44.749:INFO:oejhs.SslContextFactory:No keystore or trust store
  29. configured. ACCEPTING UNTRUSTED CERTIFICATES!!!!!
  30. 2012-02-01 19:44:44.912:INFO:oejs.TransparentProxy:TransparentProxy @ /javadoc-
  31. roxy to http://download.eclipse.org/jetty/stable-8/apidocs
  32. 2012-02-01 19:44:44.914:INFO:oejd.DeploymentManager:Deployable added: D:\jetty\
  33. etty-distribution-8.0.4.v20111024\contexts\javadoc.xml
  34. 2012-02-01 19:44:44.925:INFO:oejs.AbstractConnector:Started SelectChannelConnec
  35. or@0.0.0.0:8080 STARTING
  36. 2012-02-01 19:44:44.931:INFO:oejs.AbstractConnector:Started SelectChannelConnec
  37. or@0.0.0.0:8080 STARTING

在执行这步之前你要确保自己安装了JDK。 etc/jetty.xml,它实际指向一个 服务配置文件,该文件是用来设置jetty服务启动的系统配置信息。比如监听端口,发布某个目录下面的web应用,jndi的配置等等 http://localhost:8080/  就会看到结果

Related
Your Answer
(Ctrl+Enter To Post)   
    Newest
    Copyright © 2015-2017 163JAVA.COM All Rights Reserved.