1
我已經爲tomcat6.exe創建了一個使用sc.exe的服務。命令是:啓動用戶定義的服務時出現錯誤1053
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開始使用sc.exe start "Tomcat Server"
和services.msc都會導致相同的錯誤。
任何人都可以幫助我嗎?
謝謝大家提前。
感謝您的幫助,但不完全是tomcat作爲服務,但我使用sc.exe創建的任何服務都給我提供了同樣的錯誤。我也嘗試過VLC Player。我得到了同樣的錯誤 - @ CoreTech – user1602243
是的,那是因爲SC不能在未明確寫入Windows服務的可執行文件上工作。如果你給它一個普通的應用程序,服務將失敗,錯誤1053.你需要一個「服務包裝器」[(像微軟的Srvany)](http://www.coretechnologies.com/WindowsServices/FAQ.html#WhatIsSrvany )以適應常規應用程序作爲服務運行。 – CoreTech