window下面布署项目

1:改端口
2:bin/catalina.bat 可以设置内存大小
3:bin/catalina.bat下改名字
  :doStart
  shift
  if not "%OS%" == "Windows_NT" goto noTitle
  set _EXECJAVA=start "网站检测" %_RUNJAVA%
  goto gotTitle
4:改tomcat指向的目录为G:\wwwroot\monitor
在config.xml下面加
   <Host name="localhost"  appBase="webapps"  unpackWARs="true" autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
<Context path="" docBase="G:\wwwroot\monitor" debug="0"
reloadable="true" crossContext="true" />

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
           
   prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->

      </Host>

猜你喜欢

转载自wawa129.iteye.com/blog/1739320