1. tomact下修改端口解决端口冲突
http://jingyan.baidu.com/article/9f63fb91d0f1b8c8400f0e1d.html
打开 servers下面的server.xml文件,
修改对应的端口变得不一致
<Server port="8105" shutdown="SHUTDOWN">
<Connector connectionTimeout="20000" port="8088" protocol="HTTP/1.1" redirectPort="8443"/>
<Connector port="8109" protocol="AJP/1.3" redirectPort="8443"/>
2. 修改webAppRootKey防止冲突
需要在各自的web.xml下添加,确实好像也是不可以的,soso
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>socialmedia</param-value>
</context-param>
分类: tomcat