startup.bat中添加以下内容
setlocal SET JAVA_HOME=D:\Program Files\Java\jdk1.8.0_05 SET CATALINA_HOME=D:\Program Files\apache-tomcat-8.0.9
shutdown.bat中添加以下内容
setlocal SET JAVA_HOME=D:\Program Files\Java\jdk1.8.0_05 SET CATALINA_HOME=D:\Program Files\apache-tomcat-8.0.9
service.bat中添加以下内容
setlocal SET CATALINA_HOME=D:\Program Files\apache-tomcat-8.0.9 set SERVICE_NAME=Tomcat set PR_DISPLAYNAME=Apache Tomcat
cmd命令提示符进入到tomcat下的bin目录下,如图。
service.bat install
时间: 2024-10-07 07:13:35