(1)啓動 jetty 命令:java - jar start.jar 須要注意2個事項:必須使用JDK來運行jetty;啓動是須要讀取 start.ini 的配置信息。java
(2)第一個注意事項只要保證path裏,Windows裏JDK裏的java.exe在windows/system32的java.exe前面便可,Linux道理相同。web
(3)修改 start.ini 紅色字體是須要添加的windows
#=========================================================== # Start classpath OPTIONS. # These control what classes are on the classpath # for a full listing do # java -jar start.jar --list-options #----------------------------------------------------------- OPTIONS=Server,jsp,jmx,resources,websocket,ext,jta,plus,annotations #----------------------------------------------------------- #=========================================================== # Configuration files. # For a full list of available configuration files do # java -jar start.jar --help #----------------------------------------------------------- etc/jetty-jmx.xml etc/jetty.xml # etc/jetty-ssl.xml # etc/jetty-requestlog.xml etc/jetty-deploy.xml etc/jetty-plus.xml #etc/jetty-overlay.xml etc/jetty-webapps.xml etc/jetty-contexts.xml etc/jetty-testrealm.xml #===========================================================
OK, THAT'S ALL, THANKS.websocket