首页 > Windows开发 > 详细

windows下修改tomcat的startup.bat脚本文件后台运行

时间:2019-08-23 19:21:32      阅读:397      评论:0      收藏:0      [点我收藏+]

1、修改startup.bat文件

rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs

call "%EXECUTABLE%" run %CMD_LINE_ARGS%

:end

 2、修改catalina.bat文件

添加以下内容,使控制台日志文件重定向到out文件

%ACTION% >> %CATALINA_HOME%/logs/catalina.%date:~0,4%.%date:~5,2%.%date:~8,2%.out

技术分享图片

3、修改setclasspath.bat文件

rem Set standard command for invoking Java.
rem Note that NT requires a window name argument when using start.
rem Also note the quoting as JAVA_HOME may contain spaces.
set _RUNJAVA="%JRE_HOME%\bin\javaw.exe"
set _RUNJDB="%JAVA_HOME%\bin\jdb"

goto end

:exit
exit /b 1

:end
exit /b 0

 

windows下修改tomcat的startup.bat脚本文件后台运行

原文:https://www.cnblogs.com/djlsunshine/p/11401992.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!