<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "在 CentOS 上安裝 Jenkins"]]></title>
		<link>https://forum.andowson.com/posts/list/6.page</link>
		<description><![CDATA[Latest messages posted in the topic "在 CentOS 上安裝 Jenkins"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>在 CentOS 上安裝 Jenkins</title>
				<description><![CDATA[ 在 CentOS 上安裝 Jenkins 
<br>
 http://pkg.jenkins-ci.org/redhat/ 
<br>
 https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions 
<br>
安裝 Jenkins 
<br>
<br>
[code]sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo 
<br>
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key 
<br>
yum install jenkins[/code] 
<br>
在公司內部環境需透過proxy才能連線的話， 
<br>
應先切換身分為root並設定http_proxy這個環境變數，例如: 
<br>
[code] 
<br>
sudo -i 
<br>
export http_proxy=http://10.160.3.88:8080/ 
<br>
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key[/code] 
<br>
啟動 Jenkins 
<br>
<br>
[code]service jenkins start[/code] 
<br>
整合 Jenkins 至 Apache 
<br>
<br>
 https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache 
<br>
修改/etc/sysconfig/jenkins 
<br>
<br>
[code]JENKINS_ARGS="--prefix=/jenkins"[/code] 
<br>
vi /etc/httpd/conf.d/proxy_ajp.conf 
<br>
<br>
[code]ProxyPass /jenkins http://localhost:8080/jenkins 
<br>
ProxyPassReverse /jenkins http://localhost:8080/jenkins 
<br>
ProxyRequests Off[/code] 
<br>
重新啟動 Jenkins 
<br>
<br>
[code]service jenkins restart[/code] 
<br>
存取 Jenkins 
<br>
http://myserver.domain.name/jenkins]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/561/1164.page</guid>
				<link>https://forum.andowson.com/posts/preList/561/1164.page</link>
				<pubDate><![CDATA[Thu, 20 Oct 2011 14:19:12]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>