install Jenkins into CentOS

First make sure java is installed
[vagrant@localhost app]$ java -version
openjdk version “1.8.0_191”
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Add jenkins repository
[vagrant@localhost app]$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
–2019-01-22 21:14:32– http://pkg.jenkins-ci.org/redhat/jenkins.repo
pkg.jenkins-ci.org をDNSに問いあわせています… 52.202.51.185
pkg.jenkins-ci.org|52.202.51.185|:80 に接続しています… 接続しました。
HTTP による接続要求を送信しました、応答を待っています… 200 OK
長さ: 71
`/etc/yum.repos.d/jenkins.repo’ に保存中

100%[======================================>] 71 –.-K/s 時間 0s

2019-01-22 21:14:36 (3.39 MB/s) – `/etc/yum.repos.d/jenkins.repo’ へ保存完了 [71/71]

[vagrant@localhost app]$ sudo rpm –import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

install jenkins
[vagrant@localhost app]$ sudo yum install -y jenkins


[vagrant@localhost app]$ sudo service jenkins start
Starting Jenkins [ OK ]

wow