環境†CentOS6.6 手順†openjdkのインストール†# yum search openjdk Jenkinsは1.6以上が必要なのでバージョンを確認すること。 # yum install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64 # java -version openjdk version "1.8.0_65" OpenJDK Runtime Environment (build 1.8.0_65-b17) OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode) Jenkinsのインストール†# 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 # yum -y install jenkins # cd /etc/httpd/conf.d # vim jenkins.conf 下記Apacheの設定は利用しているサーバーにあわせて適宜変更する --- <VirtualHost *:80> ServerAdmin admin@example.com DocumentRoot "/var/lib/jenkins" ServerName jenkins.hoge.com ServerAlias jenkins.hoge.com ErrorLog "/var/log/jenkins/apache-error.log" CustomLog "/var/log/jenkins/apache-access.log" common ProxyPass /jenkins http://localhost:8080/jenkins retry=5 ProxyPassReverse /jenkins http://localhost:8080/jenkins ProxyRequests Off <Proxy http://localhost:8080/jenkins*> Order deny,allow Allow from all </Proxy> </VirtualHost> --- # service jenkins start # chkconfig --list jenkins jenkins 0:off 1:off 2:off 3:on 4:off 5:on 6:off 備考†インストール先は下記のフォルダになります。
参考URL† |