您可以取消部署JETTY的应用程序吗? [英] Can you undeploy applications from JETTY?

查看:110
本文介绍了您可以取消部署JETTY的应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JETTY运行时,我似乎找不到取消部署或关闭应用程序的方法.是杀死JETTY和所有其他应用程序运行的唯一方法吗?

I cant seem to find a way to undeploy or turn off an application whilst JETTY is running. Is the only way to kill JETTY and all other apps running?

推荐答案

您可以通过几种方式来实现.

You can do that in a few ways.

如果启用了deploy模块,只需将{appname}.war(或{appname}.xml)移出${jetty.base}/webapps/目录,这将取消部署该Web应用程序.

If you have the deploy module enabled, just move the {appname}.war (or {appname}.xml) out of your ${jetty.base}/webapps/ directory, that will undeploy that webapp.

另一种选择是启用JMX,然后仅.stop()有问题的Web应用程序.

Another choice is to have JMX enabled and just .stop() the webapp in question.

这篇关于您可以取消部署JETTY的应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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