Tomcat 点击 startup.bat 后不打开新的窗口

服务应用 · 2023-11-14

修改 bin\catalina.bat 里面的

:doStart
shift
if "%TITLE%" == "" set TITLE=Tomcat
rem 这里加上 /b 就不会弹出新窗口
set _EXECJAVA=start /b "%TITLE%" %_RUNJAVA%  
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
goto execCmd
Tomcat
Theme Jasmine by Kent Liao