简体   繁体   English

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

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

Having installed Jetty, it's certainly running as I get a welcome page.安装 Jetty 后,当我得到一个欢迎页面时,它肯定正在运行。

How do I manually deploy a WAR to Jetty?如何手动WAR部署到 Jetty?

If you have a standard web application, you can hot deploy it into Jetty by copying it into the webapps directory.如果您有一个标准的 web 应用程序,您可以通过将其复制到 webapps 目录中来将其热部署到 Jetty。

Where is the webapps directory? webapps 目录在哪里? Or, how do I find the directory?或者,我如何找到目录?

See also :

  1. Deploying by Copying WAR通过复制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.将 web 应用程序部署到 Jetty 服务器的最简单方法可能是将 WAR 文件复制到 $JETTY_HOME/webapps 目录中。

output from dpkg -L jetty9 as a gist shows:来自dpkg -L jetty9的 output 作为要点显示:

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

and:和:

/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

On Ubuntu Jetty by default webapps directory is /var/lib/jetty/webapps .在 Ubuntu Jetty 上,默认 webapps 目录是/var/lib/jetty/webapps

To be sure, please check list of installed files (and to which directories they have been copied):可以肯定的是,请检查已安装文件的列表(以及它们已复制到哪些目录):

dpkg -L jetty

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM