練功房推薦書單

  • 猛虎出柙雙劍合璧版--最新 OCA / OCP Java SE 7 Programmer 專業認證 (電子書)
  • 流浪教師存零股存到3000萬(全新增修版)(書+DVD)
  • 開始在關西自助旅行(京都‧大阪‧神戶‧奈良)(全新增訂版)
  • 不敗教主的300張股票存股術

在 CentOS 上安裝 Jenkins RSS feed
Forum Index » 軟體開發專案管理 Software Development Project Management
Author Message
andowson

七段學員
[Avatar]

Joined: 2007/1/2
Messages: 711
Location: 台北
Offline
在 CentOS 上安裝 Jenkins
http://pkg.jenkins-ci.org/redhat/
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions
安裝 Jenkins

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins

在公司內部環境需透過proxy才能連線的話,
應先切換身分為root並設定http_proxy這個環境變數,例如:

sudo -i
export http_proxy=http://10.160.3.88:8080/
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

啟動 Jenkins

service jenkins start

整合 Jenkins 至 Apache

https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache
修改/etc/sysconfig/jenkins

JENKINS_ARGS="--prefix=/jenkins"

vi /etc/httpd/conf.d/proxy_ajp.conf

ProxyPass         /jenkins  http://localhost:8080/jenkins

ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyRequests Off

重新啟動 Jenkins

service jenkins restart

存取 Jenkins
http://myserver.domain.name/jenkins

分享經驗 累積智慧
[WWW]
 
Forum Index » 軟體開發專案管理 Software Development Project Management
Go to:   
Mobile view