1

我使用 sc.exe 为 tomcat6.exe 创建了一个服务。命令是:

sc.exe create "Tomcat Service" binPath= "D:\tomcat\bin\tomcat.exe

创建服务成功,但在启动服务时出现以下错误。

Error 1053: the service did not respond to the start or control request in a timely fashion

从 cmd usingsc.exe start "Tomcat Server"和 services.msc 开始都会导致相同的错误。

任何人都可以帮助我吗?

谢谢大家。

4

1 回答 1

1

虽然 Tomcat.exe 是一个真正的 Windows 服务,但使用 SC 安装它还不够好。使用“service.bat”文件或通过为 tomcat6.exe 编写您自己的命令行选项(包括 //IS// 参数)将 Tomcat 6 安装为服务。

于 2012-12-07T13:48:47.817 回答