土台
- rhel 6
$ cat /etc/redhat-release
CentOS release 6.7 (Final)
$ arch
x86_64
インストール方法
- javaのインストール
# wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm
# rpm -Uhv jdk-8u45-linux-x64.rpm
- jenkinsのrepo取得
# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
- jenkiknsのインストールと起動
# yum install jenkins
# service jenkins start
- 確認
- 初期設定はport8080で起動している
# curl -I http://127.0.0.1:8080
-
jenkinsのversion確認
- ブラウザでアクセス(e.g. http://192.168.33.12:8080)
- ブラウザの右下に「jenkins ver. XXX」
- もしくは Jenkins > Manage Jenkins > About Jenkins
- CLIでの確認方法が知りたい…
- ブラウザでアクセス(e.g. http://192.168.33.12:8080)
-
自動起動設定
# chkconfig jenkins on
基本説明
- Jenkins本体
/usr/lib/jenkins/jenkins.war
- 設定ファイル
/etc/sysconfig/jenkins
- 設定ディレクトリ(ホームディレクトリ)
/var/lib/jenkins
- 起動スクリプト
/etc/rc.d/init.d/jenkins
追記
http機能がjenkinsにあるため、別個でnginx等をたてる必要はないらしい。