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
本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/1441629