一、环境准备
1、安装java环境
可采用二进制包或者yum安装
2、准备jenkins rpm包
下载地址:http://pkg.jenkins-ci.org/redhat-stable/
jenkins-1.651.3-1.1.noarch.rpm
3、系统环境
Centos7 X64
二、开始安装
1、安装java,本次采用yum方式安装
# yum install java -y
2、安装jenkins
# wget http://ftp.tsukuba.wide.ad.jp/software/jenkins/redhat-stable/jenkins-1.651.3-1.1.noarch.rpm
# yum localinstall jenkins-1.651.3-1.1.noarch.rpm -y
3、安装产生文件
# rpm -ql jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/cache/jenkins
/var/lib/jenkins
/var/log/jenkins
4、启动服务
# service jenkins start
启动后会启动8080端口、8009端口,打开浏览器访问服务器IP:8080 ,如需更改端口,请编辑 /etc/sysconfig/jenkins