すべての出会いが美しいとは限らない。すべての別れが悲しいとは言えない。

0%

Install Jenkins at CentOS 6.x

Step 0: Check OS Info

1
2
$ cat /etc/*-release
CentOS release 6.6 (Final)

Step 1: Install Java

1
2
3
4
5
$ yum install java-1.8.0-openjdk
$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Step 2: Install Jenkins

1
2
3
4
$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
$ sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
$ sudo yum install jenkins
$ sudo service jenkins start

Step 3: Start Jenkins When System Reboot

1
2
3
$ chkconfig jenkins on
$ sudo chkconfig --list jenkins
jenkins 0:off 1:off 2:on 3:on 4:on 5:on 6:off