如何通过复制到$ JETTY_HOME/webapps将WAR部署到Jetty? [英] How to deploy a WAR to Jetty by copying to $JETTY_HOME/webapps?

查看:142
本文介绍了如何通过复制到$ JETTY_HOME/webapps将WAR部署到Jetty?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经安装了Jetty,当我得到欢迎页面时,它肯定正在运行.

Having installed Jetty, it's certainly running as I get a welcome page.

如何手动部署WAR到码头吗?

如果您有标准的Web应用程序,则可以将其热部署到 将Jetty复制到webapps目录中.

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

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

Where is the webapps directory? Or, how do I find the directory?

另请参见 :

  1. 通过复制WAR进行部署

将Web应用程序部署到Jetty服务器的最简单方法是 可能是通过将WAR文件复制到$ JETTY_HOME/webapps中 目录.

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

输出作为要点显示:

/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.

On Ubuntu Jetty by default webapps directory is /var/lib/jetty/webapps.

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

To be sure, please check list of installed files (and to which directories they have been copied):

dpkg -L jetty

这篇关于如何通过复制到$ JETTY_HOME/webapps将WAR部署到Jetty?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆