本文下載的TeamCity路徑為/usr/local/src/
# cd /usr/local/src/TeamCity
# ./bin/teamcity-server.sh start
顯示如下:
Using CATALINA_BASE: /usr/local/src/TeamCity
Using CATALINA_HOME: /usr/local/src/TeamCity
Using CATALINA_TMPDIR: /usr/local/src/TeamCity/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/src/TeamCity/bin/bootstrap.jar:/usr/local/src/TeamCity/bin/tomcat-juli.jar
Tomcat started.
# ps aux | grep tomcat
# ps aux | grep teamcity
Linux下安裝TeamCity簡單教程,查看tomcat 和 teamcity 是否已成功啟動即可。
再通過查看配置文件得知teamcity的端口號
#vim /usr/local/src/TeamCity/conf/server.xml
Connector port="8111" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="60000"
redirectPort="8543"
useBodyEncodingForURI="true"
socket.txBufSize="64000"
socket.rxBufSize="64000"
tcpNoDelay="1"
/>
本版本為TeamCity 9.0.2 (build 32195)
其中8111即為端口號
開放了即可用ip+端口訪問