为什么我不能删除Tomcat6服务?

时间:2015-07-28 21:53:03

标签: tomcat

我完全糊涂了。 Windows 7 Professional w / Service Pack 1,64位。

我正在尝试安装Apache Tomcat 7,但之前安装了Tomcat 6。它可能没有正确安装,我不确定。

我下载了apache-tomcat-6.0.44-windows-x64.zip并将其移至C:\ Program Files(x86)\ Apache Software Foundation \ Tomcat 6.0 \ bin。

将环境变量CATALINA_HOME设置为C:\ Program Files(x86)\ Apache Software Foundation \ Tomcat 6.0

我导航到tomcat 6目录并尝试删除,如相关贡献中所述:

C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\bin>service.bat remove
Removing the service 'Tomcat6' ...
Using CATALINA_BASE:    "C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0"
The specified service has been marked for deletion.
Unable to delete 'Tomcat6' service
The specified service has been marked for deletion.
Failed to delete service
Failed removing 'Tomcat6' service

所以......我无法删除该服务,因为它已标记为删除。 WHA ..... ?????

戴夫

1 个答案:

答案 0 :(得分:1)

我找到了答案。我需要从注册表中删除对Tomcat6的引用并重新启动。什么是PITA!

参考:source