tomcat服务有时候莫名抽风,
- 执行
service.bat remove tomcatX时会提示The service 'tomcatX' has been removed; - 但是执行
service.bat install时又提示Failed installing 'tomcatX' service; - 然后再执行
service.bat remove tomcatX时就会提示指定的服务已标记为删除; - 在关闭
services.msc的状态下执行sc delete tomcat8也会提示指定的服务已标记为删除
后来发现任务管理器的进程里面居然还有 tomcatX……结束掉之后……再执行 service.bat install 就好了……
The service 'tomcatX' has been installed