[Tomcat]无法使用tomcat6.exe启动服务解决办法, The system cannot find the Registry key for service 'tomcat7'

时间:2021-06-02 13:43:49

重新配置环境变量后,可以使用startup.bat启动服务,

但是无法使用tomcat6.exe启动服务,

错误信息:

[2011-03-10 18:51:49] [warn]  The system cannot find the Registry key for servic

e 'tomcat6'

[2011-03-10 18:51:49] [error] Load configuration failed

[2011-03-10 18:51:49] [error] 系统找不到指定的文件。

[2011-03-10 18:51:49] [error] Commons Daemon procrun failed with exit value: 2 (

Failed to load configuration)

[2011-03-10 18:51:49] [error] 系统找不到指定的文件。

解决办法:控制台进入tomcat/bin目录下,运行service.bat install,问题解决

删除服务:service.bat  remove tomcat