第一步
自行安装JDK8
第二步
安装jenkins
添加Jenkins存储库
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
添加jenkins包
rpm –import https://jenkins-ci.org/redhat/jenkins-ci.org.key
安装jenkins
yum -y install jenkins
第三步
jenkins默认端口是8080
修改端口,如果不需要修改端口,可过
vim /etc/sysconfig/jenkins
## Type: integer(0:65535)
## Default: 8080
## ServiceRestart: jenkins
#
# Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_PORT="8080"
##端口,可修改
第四步
启动
启动
systemctl start jenkins
设置开机启动
chkconfig jenkins on