【转】Tomcat版本是32位、64位问题

转载地址:http://www.cnblogs.com/greensleeves/p/3168541.html

最近遇到一个Tomcat windows安装版本是32位还是64位问题。由于一系列原因,已经无从知晓生产系统上的该程序是32位还是64位。

后来经过仔细查阅资料,得知:

1. tomcat 从6.0.24开始才区分 32位和64位版本问题

  这个可以从 http://archive.apache.org/dist/tomcat/tomcat-6/ 查阅到。

2.要判断一个exe是32位还是64位,可以通过UltraEdit打开看看

下面是摘录别人的:

If you have a hex editor program, just open your file with it and shortly after the standard header

intro stuff (like "This program cannot be run in DOS mode...") you will see either

"PE..L" (hex code: 504500004C) = 32 bit

or

"PE..d†" (hex code: 504500006486) = 64 bit

3.可以通过工具来验证(PESnoop.exe)

4.最笨的办法

       可以通过得知Tomcat的版本号,进而从官网分别下载32、64位的安装包,最后通过

  Beyond Compared这样的工具和本地的文件一一比对来判断。

最后我自己还是有个疑问:

  1. tomcat同一版本 32、64位的区别是什么? 只是 32位安装在32位的操作系统上,64位安装在64位的操作系统上?

  2. 通过比对 apache-tomcat-6.0.37-windows 官网下载的32、64安装包,只发现一个tomcat6.exe 大小不一致,其他文件都相同。为什么?

原文地址:https://www.cnblogs.com/csshaw/p/4597876.html