如何通过复制到 $JETTY_HOME/webapps 将 WAR 部署到 Jetty?

How to deploy a WAR to Jetty by copying to $JETTY_HOME/webapps?

安装 Jetty 后,当然 运行 出现欢迎页面。

如何 manuallyWAR 部署到 Jetty?

If you have a standard web application, you can hot deploy it into Jetty by copying it into the webapps directory.

webapps 目录在哪里?或者,如何找到目录?

参见also

  1. Deploying by Copying WAR

The easiest way to deploy a web application to Jetty server is probably by copying the WAR file into the $JETTY_HOME/webapps directory.

dpkg -L jetty9 的输出 gist 显示:

/usr/share/jetty9/logs
/usr/share/jetty9/start.d
/usr/share/jetty9/start.ini
/usr/share/jetty9/start.jar
/usr/share/jetty9/webapps

和:

/var/cache/jetty9
/var/lib
/var/lib/jetty9
/var/lib/jetty9/webapps
/var/lib/jetty9/webapps/README.TXT
/var/log
/var/log/jetty9
/usr/share/doc/jetty9/README.Debian

在 Ubuntu Jetty 默认的 webapps 目录是 /var/lib/jetty/webapps.

为了确定,请检查已安装文件的列表(以及它们已复制到哪些目录):

dpkg -L jetty