用文本打开..\bin\shutdown.bat把内容该为: @echo off if "%OS%" == "Windows_NT" setlocal rem --------------------------------------------------------------------------- rem Stop script for the CATALINA Server rem rem $Id: shutdown.bat,v 1.5 2002/01/15 02:55:38 patrickl Exp $ rem ---------------------------------------------------------------------------rem Guess CATALINA_HOME if not defined if not "%CATALINA_HOME%" == "" goto gotHome set CATALINA_HOME=. if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome set CATALINA_HOME=.. :gotHome if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome echo The CATALINA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program goto end :okHomeset EXECUTABLE=%CATALINA_HOME%\bin\catalina.batrem Check that target executable exists if exist "%EXECUTABLE%" goto okExec echo Cannot find %EXECUTABLE% echo This file is needed to run this program goto end :okExecrem 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 :doneSetArgscall "%EXECUTABLE%" stop %CMD_LINE_ARGS%:end再设置一个环境变量: CLASSPATH 值为:D:\j2sdk1.4.0_02\lib\dt.jar;D:\j2sdk1.4.0_02\lib\tools.jar;
@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Stop script for the CATALINA Server
rem
rem $Id: shutdown.bat,v 1.5 2002/01/15 02:55:38 patrickl Exp $
rem ---------------------------------------------------------------------------rem Guess CATALINA_HOME if not defined
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=.
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
set CATALINA_HOME=..
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHomeset EXECUTABLE=%CATALINA_HOME%\bin\catalina.batrem Check that target executable exists
if exist "%EXECUTABLE%" goto okExec
echo Cannot find %EXECUTABLE%
echo This file is needed to run this program
goto end
:okExecrem 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
:doneSetArgscall "%EXECUTABLE%" stop %CMD_LINE_ARGS%:end再设置一个环境变量:
CLASSPATH
值为:D:\j2sdk1.4.0_02\lib\dt.jar;D:\j2sdk1.4.0_02\lib\tools.jar;
btw:怎么重新设置端口?
2、而且你也许应该使用CATALINA_HOME这个环境变量指向Tomcat的安装目录。当然,是CATALINA_HOME还是Tomcat_HOME,具体要看你的版本而定。好了,就这样了,总之,自己多想想,多练习,多试试,你肯定会成功的。祝你好运。
1.安装时有提示(4.1.12版是这样)
2.在Tomcat4\conf\server.xml中修改:(port="")
................
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8081" minProcessors="5" maxProcessors="75"
................