tomcat/conf/server.xml
Connector port="8080" 改连接端口 <Server> <Service> <Engine> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
image.png
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加入访问日志
image.png
context.xml配置连接mysql
image.png
image.png