Apache Tomcat 7.0.40 disappears after 1 second

后端 未结 5 2256
我寻月下人不归
我寻月下人不归 2021-02-18 22:46

I downloaded apache-tomcat-7.0.40 for Windows 8 and I followed the instructions by using the C:\\apache-tomcat-7.0.40> startup.bat at my command prompt. The tomc

5条回答
  •  天涯浪人
    2021-02-18 23:14

    Go to your tomcat/bin folder. Edit startup.bat file, comment out last but one line which says:

    call "%EXECUTABLE%" run >..\logs\OutputFile.log 2>&1 start %CMD_LINE_ARGS% run >..\logs\OutputFile.log 2>&1
    

    comment out using 'rem' beginning of it.

    rem call "%EXECUTABLE%" run >..\logs\OutputFile.log 2>&1 start %CMD_LINE_ARGS% run >..\logs\OutputFile.log 2>&1 
    

    then Console will be remain open. if this line is commented then that means it says to close the console and write the output in some external log file.

提交回复
热议问题