(1)启动 jetty 命令:java - jar start.jar 需要注意2个事项:必须使用JDK来运行jetty;启动是需要读取 start.ini 的配置信息。

(2)第一个注意事项只要保证path里,Windows里JDK里的java.exe在windows/system32的java.exe前面即可,Linux道理相同。

(3)修改 start.ini 红色字体是需要添加的

#===========================================================
# 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.

 

相关文章:

  • 2021-10-24
  • 2021-12-20
  • 2021-08-09
  • 2021-11-17
  • 2022-01-23
  • 2021-12-27
  • 2021-11-23
  • 2021-05-15
猜你喜欢
  • 2021-05-26
  • 2021-07-12
  • 2022-12-23
  • 2021-10-23
  • 2021-06-22
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案