话题一:同一台电脑装多个Tomcat
参考网址:https://jingyan.baidu.com/article/656db918c77b28e381249c81.html
1、解压到指定文件
2、直接在环境变量值中将配置全部添加
3、更改server.xml中的端口(三个端口整体替换,转发的端口不用改)
##更改端口(8443可以不改)
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="/opt/deploy/webapps"
unpackWARs="true" autoDeploy="true">
</Host>
</Engine>
</Service>
</Server>
4、修改四个文件:service.bat、catalina.bat、shutdown.bat、startup.bat
将CATALINA_HOME替换成CATALINA_HOME_8081(全局搜索,全部替换)
网友评论