tomcat 配置

(同时运行多个tomcat)

http访问端口、Shutdown端口、jvm启动端口

<Connector port="8088" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

 

 

 

<Server port="8015" shutdown="SHUTDOWN">

 

 <Connector port="8010" 
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

  

(tomcat startup.bat 不能运行)

添加以下环境变量(假定你的tomcat安装在c: \Tomcat):
CATALINA_HOME: C: \Tomcat
CATALINA_BASE: C: \Tomcat
TOMCAT_HOME: C:\Tomcat
然后修改环境变量中的classpath,把tomat安装目录下的common\lib下的servlet.jar追加到classpath中去,修改后的classpath如下:
classpath=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\servlet.jar;

接着可以启动tomcat(运行startup.bat或运行catalina.bat)

你可能感兴趣的:(tomcat)