首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

承多个tomcat相关配置

2012-08-31 
启多个tomcat相关配置指定tomcatshutdown.bat 和start.bat 进行配置rem Guess

启多个tomcat相关配置
===============指定tomcat============

shutdown.bat 和start.bat 进行配置

rem Guess CATALINA_HOME if not defined
set "CURRENT_DIR=%cd%"
set CATALINA_HOME=F:\apache-tomcat-7.0.16_ptest
if not "%CATALINA_HOME%" == "" goto gotHome
set "CATALINA_HOME=%CURRENT_DIR%"
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome

==================显示启动后窗口的的title==============
catalina.bat

:doStart
shift
if not "%OS%" == "Windows_NT" goto noTitle
if "%TITLE%" == "" set TITLE=Tomcat测试环境
set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
goto gotTitle
:noTitle
set _EXECJAVA=start %_RUNJAVA%
:gotTitle
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
goto execCmd


==================杀进程================
echo 'kill tomcat'
call taskkill /IM java.exe

热点排行