tomcat/conf/server.xml
Connector port="8080" 改连接端口
<Server>
<Service>
<Engine>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
![img_350bd15935bec4d28a18f330e046904c.png](https://i-blog.csdnimg.cn/blog_migrate/3b01a65a343d5706a203ba43565b5611.png)
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加入访问日志
![img_6dc0fe8d345d08ef7803bba3c7e9c829.png](https://i-blog.csdnimg.cn/blog_migrate/8579e2c6f12ce0524d50a7ec5f413b4e.png)
image.png
context.xml配置连接mysql
![img_c0ef2d89f81539caedb8080b461bd35a.png](https://i-blog.csdnimg.cn/blog_migrate/30ae0b821311dc411152d075f7fd80e5.png)
image.png
![img_6eed45001287f42e2bc2229baa350afd.png](https://i-blog.csdnimg.cn/blog_migrate/c0b62fc120658c5707d314be51257580.png)
image.png