OracleLinusへのJenkinsインストール

yumからインストールを試みるとエラー

[root@ol wp-content]# yum -y install jenkins
読み込んだプラグイン:refresh-packagekit, security
インストール処理の設定をしています
public_ol6_UEKR3_latest                                  | 1.2 kB     00:00
public_ol6_latest                                        | 1.4 kB     00:00
パッケージ jenkins は利用できません。
エラー: 何もしません
[root@ol wp-content]#

 

 ので、yumリポジトリファイルを作成。

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
[root@ol etc]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
--2015-01-04 17:56:41--  http://pkg.jenkins-ci.org/redhat/jenkins.repo
pkg.jenkins-ci.org をDNSに問いあわせています... 199.193.196.24
pkg.jenkins-ci.org|199.193.196.24|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 75 [text/plain]
`/etc/yum.repos.d/jenkins.repo' に保存中
100%[======================================>] 75          --.-K/s 時間 0s
2015-01-04 17:56:41 (2.33 MB/s) - `/etc/yum.repos.d/jenkins.repo' へ保存完了 [75/75]

で、インストール。

[root@ol etc]# rpm  –import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

[root@ol etc]# yum -y install jenkins

読み込んだプラグイン:refresh-packagekit, security

インストール処理の設定をしています

jenkins                                                  |  951 B     00:00     

jenkins/primary                                          |  29 kB     00:00     

jenkins                                                                 268/268

依存性の解決をしています

–> トランザクションの確認を実行しています。

—> Package jenkins.noarch 0:1.595-1.1 will be インストール

–> 依存性解決を終了しました。

 

依存性を解決しました

 

================================================================================

パッケージ        アーキテクチャ   バージョン          リポジトリー       容量

================================================================================

インストールしています:

jenkins           noarch           1.595-1.1           jenkins            59 M

 

トランザクションの要約

================================================================================

インストール         1 パッケージ

 

総ダウンロード容量: 59 M

インストール済み容量: 65 M

パッケージをダウンロードしています:

jenkins-1.595-1.1.noarch.rpm                             |  59 MB     00:32     

rpm_check_debug を実行しています

トランザクションのテストを実行しています

トランザクションのテストを成功しました

トランザクションを実行しています

  インストールしています  : jenkins-1.595-1.1.noarch                        1/1

  Verifying               : jenkins-1.595-1.1.noarch                        1/1

 

インストール:

  jenkins.noarch 0:1.595-1.1                                                    

 

完了しました!

仕上がりはこんな感じ。

[root@ol etc]# find / -name jenkins

/var/cache/jenkins

/var/cache/yum/x86_64/6Server/jenkins

/var/lib/jenkins

/var/lib/yum/repos/x86_64/6Server/jenkins

/var/log/jenkins

/usr/lib/jenkins

/etc/logrotate.d/jenkins

/etc/sysconfig/jenkins

/etc/rc.d/init.d/jenkins

[root@ol etc]#

 起動をしようとしたら、tomcat6とポートがバッティング。AJP13がぶつかっていたらしい。

[root@ol sysconfig]# netstat -an|grep 8009

tcp        0      0 :::8009                     :::*                        LISTEN      

[root@ol sysconfig]# lsof |grep 8009

java        673    tomcat   38u     IPv6             396589      0t0        TCP *:8009 (LISTEN)

[root@ol sysconfig]

/etc/sysconfig/jenkinsのJENKINS_AJP_PORTを変更して起動完了。

## Type:        integer(0:65535)

## Default:     8009

## ServiceRestart: jenkins

#

# Ajp13 Port Jenkins is listening on.

# Set to -1 to disable

#

JENKINS_AJP_PORT=”8091″

 

 

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です