官方文档:http://pkg.jenkins-ci.org/redhat/
1.先安装JAVA
http://blog.csdn.net/fenglailea/article/details/26006647
2.安装jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
3.设置jenkins 端口和用户
sudo vi /etc/sysconfig/jenkins
4.安装目录和日志
/usr/lib/jenkins #安装目录 /var/log/jenkins #日志目录
5.jenkins启动文件
sudo /sbin/service jenkins start