前言: 如果您是根据我发布的文章配置的JDK环境时,在安装完tomcat后,无需配置tomcat环境;
JDK配置的链接地址: //www.greatytc.com/p/a2ff43a21acc
下面开始教如何配置多个tomcat:
修改
apache-tomcat-8 _8081\conf\server.xml
<Server port="8005" shutdown="SHUTDOWN">
改成
<Server port="8006" shutdown="SHUTDOWN">
2.<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
改成
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
3.
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
改成
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
端口每次加1,多个以此类推
上面的路径是我的路径,你们需要根据自己的安装路径去找到server.xml文件