1.修改tomcat/conf下server.xml文件端口号:

主要有如下下面三个:

将Server port="8005" 改为9005

将Connector port="8080"改为9080

另一个Connector port="8009" 改为9009

linux开启两个tomcat


linux开启两个tomcat


linux开启两个tomcat


2.如此先启动一下tomcat,发现启动不了

linux开启两个tomcat


3.修改tomcat/bin下catalina.sh文件

将JPDA_ADDRESS="8000"改为9000

linux开启两个tomcat


4.启动两个tomcat正常

ps -ef | grep tomcat

相关文章:

  • 2021-12-25
  • 2021-10-31
  • 2022-01-07
  • 2022-02-10
  • 2021-09-11
  • 2022-02-26
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
相关资源
相似解决方案