那么startup.bat(// TODO startup.sh暂缓)启动后发生了什么呢?

 1 @echo off
 2 rem Licensed to the Apache Software Foundation (ASF) under one or more
 3 rem contributor license agreements.  See the NOTICE file distributed with
 4 rem this work for additional information regarding copyright ownership.
 5 rem The ASF licenses this file to You under the Apache License, Version 2.0
 6 rem (the "License"); you may not use this file except in compliance with
 7 rem the License.  You may obtain a copy of the License at
 8 rem
 9 rem     http://www.apache.org/licenses/LICENSE-2.0
10 rem
11 rem Unless required by applicable law or agreed to in writing, software
12 rem distributed under the License is distributed on an "AS IS" BASIS,
13 rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 rem See the License for the specific language governing permissions and
15 rem limitations under the License.
16 
17 if "%OS%" == "Windows_NT" setlocal
18 rem ---------------------------------------------------------------------------
19 rem Start script for the CATALINA Server
20 rem ---------------------------------------------------------------------------
21 
22 rem Guess CATALINA_HOME if not defined
23 set "CURRENT_DIR=%cd%"
24 if not "%CATALINA_HOME%" == "" goto gotHome
25 set "CATALINA_HOME=%CURRENT_DIR%"
26 if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
27 cd ..
28 set "CATALINA_HOME=%cd%"
29 cd "%CURRENT_DIR%"
30 :gotHome
31 if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
32 echo The CATALINA_HOME environment variable is not defined correctly
33 echo This environment variable is needed to run this program
34 goto end
35 :okHome
36 
37 set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"
38 
39 rem Check that target executable exists
40 if exist "%EXECUTABLE%" goto okExec
41 echo Cannot find "%EXECUTABLE%"
42 echo This file is needed to run this program
43 goto end
44 :okExec
45 
46 rem Get remaining unshifted command line arguments and save them in the
47 set CMD_LINE_ARGS=
48 :setArgs
49 if ""%1""=="""" goto doneSetArgs
50 set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
51 shift
52 goto setArgs
53 :doneSetArgs
54 
55 
56 call "%EXECUTABLE%" start %CMD_LINE_ARGS%
57 
58 :end
View Code

相关文章:

  • 2021-07-28
  • 2021-08-07
  • 2021-06-15
  • 2022-12-23
  • 2021-11-05
  • 2021-12-15
  • 2022-02-18
  • 2021-06-01
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2021-12-09
相关资源
相似解决方案