linux配置多个tomcat运行程序

1.解压出两个tomcat(配置完毕的)

2.配置条件 /etc/profile

3.配置各自tomcat属性,来到各自的bin文件夹

vim startup.sh, vim shutdown.sh,配置对应的路径

 

来到另一个tomcat

 

4.配置各自的server.xml文件,将使用的端口号配置不冲突就可以了

 

亲测可用,成功示例:

操作tomcat_index的bin时,单独tomcat_index的日志作出反应

 操作tomcat时.单独tomcat 的logs作出反应

原文地址:https://www.cnblogs.com/Crush123/p/14178638.html