sunsir 发表于 2017-1-17 08:38:53

TOMCAT三种发布应用

  1)再conf /server.xml中<host></host>之间配置
  <Context crossContext="true" debug="5" docBase="D:/Program Files/apache-tomcat-5.5.26/apache-tomcat-5.5.26/configsample" path="/configsample" reloadable="true" workDir="D:/Program Files/apache-tomcat-5.5.26/apache-tomcat-5.5.26/configsample">
</Context>
  2)再conf /catalina/localhost/ 建立configsample.xml文件:
  <?xml version="1.0" encoding="UTF-8"?>
<Context crossContext="true" debug="5" docBase="D:/Program Files/apache-tomcat-5.5.26/apache-tomcat-5.5.26/configsample" path="/configsample" reloadable="true" workDir="D:/Program Files/apache-tomcat-5.5.26/apache-tomcat-5.5.26/configsample">
</Context>
  3)直接将发布文件放到web-app文件夹中。
页: [1]
查看完整版本: TOMCAT三种发布应用