我安装了 Tomcat 8.5.15,我需要将其升级到 8.5.16 以匹配所有其他环境。据我了解,只要使用正确的参数更新配置文件,就可以使用单版本更新执行就地升级。
Tomcat 文档指出:
When upgrading instances of Apache Tomcat from one version of Tomcat 8 to
another, particularly when using separate locations for $CATALINA_HOME and
$CATALINA_BASE, it is necessary to ensure that any changes in the
configuration files such as new attributes and changes to defaults are
applied as part of the upgrade. To assist with the identification of these
changes, the form below may be used to view the differences between the
configuration files in different versions of Tomcat 8.
我运行了 tomcat 提供的工具来查看差异,看起来这不是问题,但我担心的是当前托管在 Tomcat 上的 Web 应用程序是否会在升级过程中中断?
我特别担心 APEX ORDS 应用
最佳答案
will the web apps currently hosted on Tomcat break during the upgrade process?
应用程序总是有可能对特定版本平台的行为具有未知的依赖性。在行为发生变化之前,这将是未知的 - 无论是通过回归错误还是因为此行为未指定并且选择/实现发生变化。它仍然未指定,但有所不同。
话虽这么说,您不应该依赖互联网论坛帖子告诉您您的应用程序(无论是哪个)与您的平台的随机版本兼容。很有可能它会兼容,但最终您必须自己验证这一点。
当然,这样的更新必须在 Tomcat 停机时进行,而不是在正常运行期间进行。如果你真的依赖你的应用程序的可用性,我建议你将最新的备份恢复到一台新机器上,更新它并测试它是否仍然有效。这有一个很好的副作用,即您还证明了您能够恢复备份。然而,考验是不可避免的。我不确定如何发音。要么是“你必须做”,要么是“你必须做”。
关于tomcat - 在不破坏现有应用程序的情况下升级 Tomcat 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45969287/