tomcat/conf/server.xml
Connector port="8080" 改连接端口
<Server>
<Service>
<Engine>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
tomcat
<Host name="www.123.cn" appBase="/data/tomcatweb"
unpackWARs="false" autoDeploy="true"
xmlValidation="false" >
<Context path="" docBase="/data/tomcatweb" debug="0" reloadable="true" crossContext="true">
</Host>
tomcat加入访问日志
context.xml配置连接mysql