Tar xzf teamcity-9.0.4.tar.gz
Software Preparation
System: Centos 6.4 64-bit
Java:jdk1.7.0_25
Database: Optional (continuous integration deployment is not necessary to customize the database yourself)
Teamcity:teamcity-9.0.4.tar.gz
Installation configuration
1) Decompression software
Tar xzf teamcity-9.0.4.tar.gz
2) configuration teamcity
#添加启动JAVA_OPTSvim $TEAMCITY _home/bin/catalina.sh99 Line java_opts= "-xms4096m-xmx4096m -xx:permsize=1024m-xx: maxnewsize=512m-xx:maxpermsize=1024m "#更改启动端口添加中文显示vim $TEAMCITY _home/conf/server.xml71 line port=" 8111 "Change to Port=" 80 "# According to your needs uriencoding= "UTF-8" # # #log4j等自行定义
3) Start teamcity-installation
# # #根据提示创建日志文件touch: Cannot touch '/jboss/teamcity/logs/catalina.out ': No such file or Directorymkdir $TEAMCITY _home/ Logs
4) Configuration Teamcity
(1) Download teamcity Plugin * * The most important step or you will go a lot of detours
(2) Upload plugin after download
(3) Restart Teamcity: attached script
#!/bin/bash#for Linux teamctiy#auto:lonnyliu#email:[email protected]teamcity_home=${teamcity_home:-"/jboss/ TeamCity "}java_home=${java_home:-"/jboss/jdk1.7.0_25 "}start () {echo" Start TeamCity "$TEAMCITY _home/bin/ startup.shteamcity_pid=${teamcity_pid:-"' PS aux | grep java | grep TEAMCITY | awk ' {print $} '"}if [!-n "$TEAMCITY _pid" ];thenecho "Start TeamCity Fail" Elseecho "Start TeamCity successful" fi}stop () {echo "Stop TeamCity" $TEAMCITY _home/bin/s hutdown.sh teamcity_pid=${teamcity_pid:-"' PS aux | grep java | grep TEAMCITY | awk ' {print $} '"}if [!-n "$TEAMCITY _pid "];thenecho" Stop TeamCity Successful "elsekill-9 $TEAMCITY _pidecho" Stop TeamCity Fail Run Kill "fi}case $ instart) Start ;;; stop) stop;;; restart) stop;sleep 10start;;; *) echo "usage:$0 (Start|stop|restart)" Exit 1esac
(4) Configuring the project Deployment
Teamcity Installation-Configuration