gpt4 book ai didi

tomcat - 为什么不能在 WindowsXP SP3 上将 tomcat 作为服务安装?

转载 作者:行者123 更新时间:2023-11-28 23:09:08 26 4
gpt4 key购买 nike

当我为 WindowsXP 运行 setup apache-tomcat-6.0.20.exe 时,我从 Tomcat 安装程序中收到消息“无法安装 tomcat6 服务,请检查您的设置和权限”。我有权限。唯一的事情我认为与设置需求不同的是 JRE 版本。但是从 coreservlets.com 下载的 tomcat-preconfigured-6.0.18.zip 与 J2SE 6 JRE 一起工作正常。当设置对话框显示消息时,设置总是停止“使用 jvm:c:\program files\java\jre\bin\client\jvm.dll”。没有安装任何其他服务或其他版本的 Tomcat,即使作为服务也没有安装。

然后我尝试了以下!!!

我使用 apache-tomcat-6.0.20.exe 安装了 Tomcat 但不是作为服务。然后我尝试从 bin 运行“tomcat6.exe service runner” 但它没有启动服务日志如下

[2009-07-21 20:02:34] [info] Procrun (2.0.4.0) started
[2009-07-21 20:02:34] [info] Service Tomcat6 name Apache Tomcat 6
[2009-07-21 20:02:35] [info] Service Tomcat6 installed
[2009-07-21 20:02:35] [info] Procrun finished.
[2009-07-21 21:46:10] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:10] [info] Debugging Service...
[2009-07-21 21:46:10] [info] Starting service...
[2009-07-21 21:46:10] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:10] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:10] [info] Debug service finished.
[2009-07-21 21:46:10] [info] Procrun finished.
[2009-07-21 21:46:14] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:14] [info] Debugging Service...
[2009-07-21 21:46:14] [info] Starting service...
[2009-07-21 21:46:14] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:14] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:14] [info] Debug service finished.
[2009-07-21 21:46:14] [info] Procrun finished.
[2009-07-21 21:46:24] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:24] [info] Running Service...
[2009-07-21 21:46:24] [info] Starting service...
[2009-07-21 21:46:24] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:24] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:24] [info] Run service finished.
[2009-07-21 21:46:24] [info] Procrun finished.
[2009-07-21 21:46:28] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:28] [info] Running Service...
[2009-07-21 21:46:28] [info] Starting service...
[2009-07-21 21:46:28] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:28] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:28] [info] Run service finished.
[2009-07-21 21:46:28] [info] Procrun finished.
[2009-07-21 21:46:31] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:31] [info] Running Service...
[2009-07-21 21:46:31] [info] Starting service...
[2009-07-21 21:46:32] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:32] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:32] [info] Run service finished.
[2009-07-21 21:46:32] [info] Procrun finished.
[2009-07-21 21:46:35] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:35] [info] Running Service...
[2009-07-21 21:46:35] [info] Starting service...
[2009-07-21 21:46:35] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:35] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:35] [info] Run service finished.
[2009-07-21 21:46:35] [info] Procrun finished.
[2009-07-21 21:53:44] [info] Procrun (2.0.4.0) started
[2009-07-21 21:53:44] [info] Debugging Service...
[2009-07-21 21:53:44] [info] Starting service...
[2009-07-21 21:53:44] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:53:44] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:53:44] [info] Debug service finished.
[2009-07-21 21:53:44] [info] Procrun finished.
[2009-07-21 21:54:06] [info] Procrun (2.0.4.0) started
[2009-07-21 21:54:06] [info] Debugging Service...
[2009-07-21 21:54:06] [info] Starting service...
[2009-07-21 21:54:06] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:54:06] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:54:06] [info] Debug service finished.
[2009-07-21 21:54:06] [info] Procrun finished.
[2009-07-21 21:55:44] [info] Procrun (2.0.4.0) started
[2009-07-21 21:55:44] [info] Debugging Service...
[2009-07-21 21:55:44] [info] Starting service...
[2009-07-21 21:55:44] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:55:44] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:55:44] [info] Debug service finished.
[2009-07-21 21:55:44] [info] Procrun finished.
[2009-07-21 21:55:44] [info] Procrun (2.0.4.0) started
[2009-07-21 21:55:44] [info] Debugging Service...
[2009-07-21 21:55:44] [info] Starting service...
[2009-07-21 21:55:44] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:55:44] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:55:44] [info] Debug service finished.
[2009-07-21 21:55:44] [info] Procrun finished.
[2009-07-21 21:55:45] [info] Procrun (2.0.4.0) started
[2009-07-21 21:55:45] [info] Debugging Service...
[2009-07-21 21:55:45] [info] Starting service...
[2009-07-21 21:55:45] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:55:45] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:55:45] [info] Debug service finished.
[2009-07-21 21:55:45] [info] Procrun finished.

请你的想法!!!!!!!!!!!!!!

最佳答案

我的安装是基于Windows Server 2003 SP2和Tomcat 7的,我觉得问题和windows xp上的安装是一样的。

首先尝试更改变量值。默认系统变量值为 %SystemRoot%\TEMP,默认用户变量值为 %USERPROFILE%\Local Settings\Temp。将用户变量和系统变量中的 TEMP 和 TMP 的值从默认值更改为 C:\temp。

(右键单击“我的电脑”,转到“属性”。在“启动和恢复”下查看,然后按“环境变量”按钮)

如果您还有 Tomcat 安装问题,请尝试以下 Søren Løvborg 的解决方案,这个对我有用。要稍后安装服务监视器,只需启动安装程序并忽略错误。之后我有一个工作安装。

关于tomcat - 为什么不能在 WindowsXP SP3 上将 tomcat 作为服务安装?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1161002/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com