Modify Tomcat's CMD window title

Modify Tomcat's CMD window title

When multiple tomcats are started on the server, and none of them are services, they need to be distinguished

Find %tomcat_home%\bin\catalina.bat

:doStart
shift
if not "%OS%" == "Windows_NT" goto noTitle
if "%TITLE%" == "" set TITLE=Tomcat
set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
goto gotTitle

Change the red font to the following

set _EXECJAVA=start "Title-%CATALINA_HOME%" %_RUNJAVA%

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326562678&siteId=291194637