簡體   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