會員註冊 / 登入  |  電腦版  |  Jump to bottom of page

軟體開發專案管理 Software Development Project Management » 在 CentOS 上安裝 Jenkins

發表人: andowson, 七段學員
2011-10-20 14:19:12
在 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




會員註冊 / 登入  |  電腦版  |  Jump to top of page