下载:

https://jenkins.io/index.html

下载1.7以上jdk:

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

 

安装jdk

sudo yum install jdk***.rpm

  

安装jenkins

sudo yum install jenkins-x.x.x.rpm

  

卸载jenkins

yum remove jenkins

  

查找占用port,选没有被占用的配置jenkins

netstat -apn

  

设置jenkins配置

sudo vim /etc/sysconfig/jenkins

  

配置项

JENKINS_USER
JENKINS_PORT
JENKINS_AJP_PORT

  

/var/log/jenkins和/var/cache/jenkins付给配置的jenkins_user

启动

sudo service jenkins start|stop|restart 

  

web页面打开localhost:配置的port或xxxip:配置的port

 

如果可选插件列表为空,进入“高级”,然后在右下角点击一下“立即获取”。