centos7 同时启动2个tomcat

我估计你是直接复制一个tomcat的

假设现在有2个tomcat,分别为tomcat1,tomcat2
我当时是这么做的:

1 在tomcat1、2的catalina.sh中定义CATALINA_HOME CATALINA_BASE,

而不是在/etc/profile中


2 修改tomcat2的server.xml,改变端口,不要和tomcat1的端口一样

猜你喜欢

转载自lanyan-lan.iteye.com/blog/2393872