繁体   English   中英

我可以在不重新启动 tomcat 的情况下编辑和应用 tomcat 设置(conf/server.xml,context.xml)吗?

[英]Can I edit and apply tomcat setting (conf/server.xml,context.xml) without restart tomcat?

我正在尝试更改 tomcat 设置(conf/server.xml,context.xml),而不在 k8s 中重新启动 tomcat,以维护 Pod 容器状态。 如果我重新启动 tomcat,Pod 将被关闭并且新的设置将丢失。

所以我需要解决方案应用设置而不重新启动 tomcat。 有没有办法做到这一点?

(我不考虑在 yaml 文件中应用新设置,尝试动态编辑)

如果更改 server.xml,则必须重新启动 Tomcat。

If you change the global context.xml, web.xml or the per host or per web application equivalents and automatic deployment is enabled, Tomcat will reload/redploy the web application as appropriate.

有很多组合, Tomcat 文档中描述了每种组合会发生什么的全套描述

我有一段时间没有直接部署到 Tomcat(我倾向于使用 Spring Boots 集成 Tomcat)但是我可以告诉你,以前不可能在不重新启动的情况下反映对服务器配置的更改。

暂无
暂无

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

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