如何在同一系统里同时启动多个Tomcat
1个回答
展开全部
1、tomcat服务器需配置三个端口才能启动,安装时默认启用了这三个端口,当要运行多个tomcat服务时需要修改这三个端口,不能相同。
2、端口一:
修改http访问端口(默认为8080端口),配置文件为tomcat\ conf\service.xml
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
3、端口二:
修改Shutdown端口(默认为8005端口) <Server port="8005" shutdown="SHUTDOWN">
4、端口三:
修改JVM启动端口(默认为8009端口) <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
2、端口一:
修改http访问端口(默认为8080端口),配置文件为tomcat\ conf\service.xml
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
3、端口二:
修改Shutdown端口(默认为8005端口) <Server port="8005" shutdown="SHUTDOWN">
4、端口三:
修改JVM启动端口(默认为8009端口) <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询