简体   繁体   English

发现mod_jk的依赖项

[英]Discovering dependencies of mod_jk

We are running a large amount of old EC2 instances which are based on Amazon Linux AMI 2014.09 , a pretty old version. 我们正在运行大量基于Amazon Linux AMI 2014.09 (一个相当旧的版本)的旧EC2实例。

We have recently built mod_jk on one of them that so that we can front Tomcat with Apache Web server 2.4. 我们最近在其中之一上构建了mod_jk,以便我们可以使用Apache Web服务器2.4来管理Tomcat。

We are in the process of identifying the dependencies of this mod_jk module. 我们正在确定此mod_jk模块的依赖项。 Can we re-use the mod_jk.so library that we just built with newer versions of the OS? 我们可以重用刚用较新版本的OS构建的mod_jk.so库吗? We are running a large number of instances, so we would like to cut out the whole "building binaries from sources" step, so our ideal setup would be to take the current mod_jk.so binary and deploy it in all other EC2 instances. 我们正在运行大量实例,因此我们希望删除整个“从源代码构建二进制文件”步骤,因此我们的理想设置是采用当前的mod_jk.so二进制文件并将其部署在所有其他EC2实例中。

The question is: can we safely do it? 问题是:我们可以安全地做到这一点吗? If not, when do we need to rebuild it? 如果没有,我们什么时候需要重建它? For example: 例如:

  1. Do we need to rebuild it if we decide to launch EC2 instances with the latest Amazon Linux AMI , which is 3 years newer? 如果我们决定使用更新了3年的最新Amazon Linux AMI启动EC2实例,是否需要重建它?

  2. Do we need to rebuild it if the Apache's version is different? 如果Apache的版本不同,是否需要重建它?

Thank you in advance, Meletis 预先感谢您,Meletis

I have a couple of precompiled mod_jk 's in order to avoid just this cases. 为了避免这种情况,我有几个预编译的mod_jk As per my own experience, I must recompile it in this scenarios: 根据我自己的经验,我必须在这种情况下重新编译它:

  1. Different Apache version (2.2/2.4) 不同的Apache版本(2.2 / 2.4)
  2. Apache 32/64bits Apache 32/64位

As I stated before, according to this, you should have no more than 4 built mod_jk binaries to choose the right one from. 如前所述,根据这一点,您应该拥有不超过4个内置的mod_jk二进制文件以从中选择合适的二进制文件。

I could not tell you wether this is a best practice (probably not), but I have use this already built mod_jk in different Linux distributions and versions of Fedora, CentOS, Red Hat and Debian. 我不能告诉您这是否是最佳实践(可能不是),但是我已经在不同的Linux发行版和Fedora,CentOS,Red Hat和Debian版本中使用了已经构建的mod_jk

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

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