tomcat 相关总结

一、文件说明,各种位置

二、相关坑

三、host配置:(重新启动tomcat)

  1、在conf/server.xml里面,端口默认是80,如果在本机配置host,需要配置80端口的监听

            <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="utf-8" />

       2、对应的engin需要配置相应的默认域名

            <Engine name="Catalina" defaultHost="www.test.cn">//默认是localhost

      3、在engine里面,需要配置相应的host文件

           <Host name="www.test.cn" appBase="webapps"

        unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">

            <Context path="" docBase ="/test/"/>//这个就是你要映射的项目名称

          </Host>

 

posted on 2018-04-11 14:19  凤鸣岐山  阅读(85)  评论(0编辑  收藏  举报

导航