1.上传安装包 jenkins-1.656-1.1.noarch.rpm
2.安装jenkins
sudo rpm -ivh jenkins-1.656-1.1.noarch.rpm
3.vi /etc/sysconfig/jenkins
修改端口JENKINS_PORT="8888" —端口随意
修改运行用户JENKINS_USER="admin"
4.vi /etc/init.d/jenkins
添加java路径~/software/jdk1.7.0_79/bin/java
candidates="
/etc/alternatives/java
/usr/lib/jvm/java-1.6.0/bin/java
/usr/lib/jvm/jre-1.6.0/bin/java
/usr/lib/jvm/java-1.7.0/bin/java
/usr/lib/jvm/jre-1.7.0/bin/java
/usr/lib/jvm/java-1.8.0/bin/java
/usr/lib/jvm/jre-1.8.0/bin/java
/usr/bin/java
/home/admin/software/jdk1.7.0_79/bin/java
5.修改jenkins所有者
sudo chown -R admin /usr/lib/jenkins
sudo chgrp -R admin /usr/lib/jenkins
sudo chown -R admin /var/log/jenkins
sudo chgrp -R admin /var/log/jenkins
sudo chown -R admin /var/lib/jenkins
sudo chgrp -R admin /var/lib/jenkins
sudo chown -R admin /var/cache/jenkins
sudo chgrp -R admin /var/cache/jenkins
6.启动jenkins
sudo service jenkins start
7.访问jenkins
8.安装jenkins后“可选插件”列表中显示为空
http://www.techv5.com/topic/421/