启多个tomcat相关配置

===============指定tomcat============

shutdown.bat和start.bat进行配置

remGuessCATALINA_HOMEifnotdefined

set"CURRENT_DIR=%cd%"

setCATALINA_HOME=F:\apache-tomcat-7.0.16_ptest

ifnot"%CATALINA_HOME%"==""gotogotHome

set"CATALINA_HOME=%CURRENT_DIR%"

ifexist"%CATALINA_HOME%\bin\catalina.bat"gotookHome

==================显示启动后窗口的的title==============

catalina.bat

:doStart

shift

ifnot"%OS%"=="Windows_NT"gotonoTitle

if"%TITLE%"==""setTITLE=Tomcat测试环境

set_EXECJAVA=start"%TITLE%"%_RUNJAVA%

gotogotTitle

:noTitle

set_EXECJAVA=start%_RUNJAVA%

:gotTitle

ifnot""%1""==""-security""gotoexecCmd

shift

echoUsingSecurityManager

set"SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"

gotoexecCmd

==================杀进程================

echo'killtomcat'

calltaskkill/IMjava.exe

相关推荐