且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在同一服务器上运行TeamCity的多个实例?

更新时间:2023-11-22 17:09:28

您需要为第二个Tomcat/TeamCity实例编辑conf\server.xml,以便它使用不同的端口或绑定到不同的网络接口,更改以下端口应为足够:

You need to edit conf\server.xml for the second Tomcat/TeamCity instance so that it uses different ports or binds to different network interfaces, changing the following ports should be enough:

  • Server port="8005"
  • Connector port="8080"
  • Server port="8005"
  • Connector port="8080"

两个服务器不能共享同一数据库,因此必须通过

Two servers cannot share the same database, so you must configure them to use different locations via TEAMCITY_DATA_PATH environment variable.

如果您还想在同一台计算机上运行多个代理,请请在这里参考我的答案.

If you also want to run multiple agents on the same machine, refer to my answer here.