Tomcat 5.5作为Windows Server 2008 64bit上的服务

时间:2021-06-02 01:54:17

Has anybody managed to get Tomcat to run as a service on Win2008 64bit? I need it for a 3rd party component that my site relies on. It works fine otherwise, but I just can't get it to run as a service. I've tried all the googling I can, and experimented with various 64bit tomcat.exe / tomcatw.exe without success. Upgrading to Tomcat 6 didn't help either. I'm running Java 1.5 64bit.

有没有人设法让Tomcat在Win2008 64bit上作为服务运行?我需要它为我的网站所依赖的第三方组件。否则它工作正常,但我不能让它作为服务运行。我已经尝试了所有的谷歌搜索,并尝试了各种64位tomcat.exe / tomcatw.exe没有成功。升级到Tomcat 6也没有帮助。我正在运行Java 1.5 64位。

3 个解决方案

#1


Download the latest builds. Your issue was the 64 bit procrun.exe/tomcatw.exe wasn't provided. The newer installers for Tomcat 5.5 and Tomcat 6 include both 32 and 64 bit and deploy the appropriate one

下载最新版本。您的问题是没有提供64位procrun.exe / tomcatw.exe。 Tomcat 5.5和Tomcat 6的较新安装程序包括32位和64位,并部署适当的安装程序

#2


  1. Download apache-tomcat-6.0.30-windows-x64 version.
  2. 下载apache-tomcat-6.0.30-windows-x64版本。

  3. Extract to c:\Tomcat6
  4. 解压缩到c:\ Tomcat6

  5. open command prompt run as Adminstrator
  6. 打开命令提示符作为管理员运行

  7. and go to Tomcat6\bin directory and run from command prompt>service install
  8. 并转到Tomcat6 \ bin目录并从命令提示符> service install运行

  9. Tomcat6 will install as Windows Service.
  10. Tomcat6将安装为Windows服务。

  11. again go to Tomcat6\bin and open tomcat6w.exe run as administrator and modify your changes.
  12. 再次转到Tomcat6 \ bin并以管理员身份运行tomcat6w.exe并修改您的更改。

  13. it works cool.
  14. 它很酷。

#3


Extracted from http://www.openlogic.com/wazi/bid/188180/

摘自http://www.openlogic.com/wazi/bid/188180/

While the Java components of Tomcat run happily under a 64 bit JVM, the installers that build the Windows service are 32 bit executables and won't work correctly under 64 bit Windows operating systems.

虽然Tomcat的Java组件在64位JVM下运行愉快,但构建Windows服务的安装程序是32位可执行文件,并且在64位Windows操作系统下无法正常运行。

Fortunately, the Tomcat team has put together 64 bit versions of these executables, although they only include them in the source distribution for each version of Tomcat. If you've already installed a copy of Tomcat, here's how to update the executables:

幸运的是,Tomcat团队已经将这些可执行文件的64位版本组合在一起,尽管它们只在每个版本的Tomcat的源代码发行版中包含它们。如果您已经安装了Tomcat的副本,以下是如何更新可执行文件:

1) Download and extract the source distribution for your version of Tomcat from OLEX

1)从OLEX下载并解压缩您的Tomcat版本的源代码分发

2) Find the directory tomcat-X.X.XX-src/connectors/procrun/bin/amd64/

2)找到目录tomcat-X.X.XX-src / connectors / procrun / bin / amd64 /

3) Copy the executables from the above directory into the tomcat-X.X.XX/bin, overwriting the 32 bit versions

3)将上述目录中的可执行文件复制到tomcat-X.X.XX / bin中,覆盖32位版本

4) Run the command service.bat install. This will install the service under the displayed name Apache Tomcat (the service name will be Tomcat5)

4)运行命令service.bat install。这将以显示的名称Apache Tomcat(服务名称为Tomcat5)安装服务

It worked to me! And I was looking for this solution for a while...

它对我有用!而我一直在寻找这个解决方案......

#1


Download the latest builds. Your issue was the 64 bit procrun.exe/tomcatw.exe wasn't provided. The newer installers for Tomcat 5.5 and Tomcat 6 include both 32 and 64 bit and deploy the appropriate one

下载最新版本。您的问题是没有提供64位procrun.exe / tomcatw.exe。 Tomcat 5.5和Tomcat 6的较新安装程序包括32位和64位,并部署适当的安装程序

#2


  1. Download apache-tomcat-6.0.30-windows-x64 version.
  2. 下载apache-tomcat-6.0.30-windows-x64版本。

  3. Extract to c:\Tomcat6
  4. 解压缩到c:\ Tomcat6

  5. open command prompt run as Adminstrator
  6. 打开命令提示符作为管理员运行

  7. and go to Tomcat6\bin directory and run from command prompt>service install
  8. 并转到Tomcat6 \ bin目录并从命令提示符> service install运行

  9. Tomcat6 will install as Windows Service.
  10. Tomcat6将安装为Windows服务。

  11. again go to Tomcat6\bin and open tomcat6w.exe run as administrator and modify your changes.
  12. 再次转到Tomcat6 \ bin并以管理员身份运行tomcat6w.exe并修改您的更改。

  13. it works cool.
  14. 它很酷。

#3


Extracted from http://www.openlogic.com/wazi/bid/188180/

摘自http://www.openlogic.com/wazi/bid/188180/

While the Java components of Tomcat run happily under a 64 bit JVM, the installers that build the Windows service are 32 bit executables and won't work correctly under 64 bit Windows operating systems.

虽然Tomcat的Java组件在64位JVM下运行愉快,但构建Windows服务的安装程序是32位可执行文件,并且在64位Windows操作系统下无法正常运行。

Fortunately, the Tomcat team has put together 64 bit versions of these executables, although they only include them in the source distribution for each version of Tomcat. If you've already installed a copy of Tomcat, here's how to update the executables:

幸运的是,Tomcat团队已经将这些可执行文件的64位版本组合在一起,尽管它们只在每个版本的Tomcat的源代码发行版中包含它们。如果您已经安装了Tomcat的副本,以下是如何更新可执行文件:

1) Download and extract the source distribution for your version of Tomcat from OLEX

1)从OLEX下载并解压缩您的Tomcat版本的源代码分发

2) Find the directory tomcat-X.X.XX-src/connectors/procrun/bin/amd64/

2)找到目录tomcat-X.X.XX-src / connectors / procrun / bin / amd64 /

3) Copy the executables from the above directory into the tomcat-X.X.XX/bin, overwriting the 32 bit versions

3)将上述目录中的可执行文件复制到tomcat-X.X.XX / bin中,覆盖32位版本

4) Run the command service.bat install. This will install the service under the displayed name Apache Tomcat (the service name will be Tomcat5)

4)运行命令service.bat install。这将以显示的名称Apache Tomcat(服务名称为Tomcat5)安装服务

It worked to me! And I was looking for this solution for a while...

它对我有用!而我一直在寻找这个解决方案......