Tomcat设置默认项目和端口

1、修改默认项目

conf/server.xml

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
            <Context path="" docBase="gold" debug="0" reloadable="true"/>

2、修改默认端口

conf/server.xml

<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

猜你喜欢

转载自blog.csdn.net/daqiang012/article/details/81946459