tomcat从命令行重启webapp [英] tomcat restart webapp from command line

查看:474
本文介绍了tomcat从命令行重启webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PCI DSS兼容环境,它运行多个应用程序,我想只重启一个应用程序,而无需重新启动服务器。我没有经理,因为显然在此环境中不允许这样做。

I have a PCI DSS compliant environment which runs several apps and I want to restart only one app without restarting the server. I don't have the manager because apparently it's not allowed in this environment.

如何通过命令行重新启动单个Web应用程序?

How do I go about restarting a single web app via command line?

推荐答案

我知道我迟到了,但是为了从命令行重新加载应用程序你可以做的一个小技巧就是去应用程序的web.xml,只需触摸它。

I know I am late to the party, but a little trick you can do in order to reload the app from the command line is to go to the web.xml of the application and simply touch it.

触摸web.xml

tomcat重新加载应用程序每次注意到此文件的更改时,如果您只是触摸它,您实际上并没有修改文件,只是时间戳。

tomcat reloads the application every time it notices a change on this file, if you simply touch it, you are not actually modifying the file, just the timestamp.

这篇关于tomcat从命令行重启webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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