环境:Tomcat9
问题描述:用service.bat安装服务时不是标准的服务名称,导致启动Tomcat9w.exe报错,见下图。
解决办法:
1. 用service.bat卸载当前的服务
D:\app\apache-tomcat-csk\bin>service.bat remove Csk
Removing the service 'Csk' ...
Using CATALINA_BASE: "D:\app\apache-tomcat-csk"
The service 'Csk' has been removed
2.重新安装服务,并重命名exe文件名。
D:\app\apache-tomcat-csk\bin>service.bat install Csk --rename
Installing the service 'Csk' ...
Using CATALINA_HOME_Csk: "D:\app\apache-tomcat-csk"
Using CATALINA_BASE: "D:\app\apache-tomcat-csk"
Using JAVA_HOME: "D:\app\Java\jdk1.8.0_181"
Using JRE_HOME: "D:\app\Java\jdk1.8.0_181\jre"
Using JVM: "D:\app\Java\jdk1.8.0_181\jre\bin\server\jvm.dll"
The service 'Csk' has been installed.
发现Tomcat9.exe和Tomcat9w.exe已经被重命名。
此时启动Cskw.exe就不会报错了。
标签:exe,Tomcat,service,app,指定,Csk,apache,Using,安装 From: https://www.cnblogs.com/huiy/p/17817062.html