(1) 更改team city的配置端口
打开%Team City Home%\conf\server.xml
找到如下段落:
<Connector port="8888" protocol="HTTP/1.1"
connectionTimeout="60000"
redirectPort="8543"
useBodyEncodingForURI="true"
/>
更改port属性即可。
(2)更改Build Agent的连接端口
打开%Build Agent Home%\conf\buildAgent.properties
#Generated properties (see buildAgent.dist.properties for description)
#Sat Oct 27 08:03:26 CST 2012
name=CI-SERVER
ownPort=9090
serverUrl=http\://localhost\:8888
...
将serverUrl指向更改后的端口。