jenkins安装步骤
安装环境:CentOS release 5.9 (Final)
一、安装java
下载jdk-6u30-linux-x64-rpm.bin
chmod +x jdk-6u30-linux-x64-rpm.bin./jdk-6u30-linux-x64-rpm.bin
tar -zxvf apache-maven-3.0.4sudo mkdir /opt/mavensudo mv ~/software/apache-maven-3.0.4 /opt/mavensudo vim /etc/profile//在末尾加MAVEN_HOME=/opt/maven/apache-maven-3.0.4export MAVEN_HOMEexport PATH=${PATH}:${MAVEN_HOME}/bin//保存 :wq!source /etc/profile
mvn -v
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.reposudo rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.keysudo yum install jenkins
sudo chown -R admin /var/log/jenkinssudo chgrp -R admin /var/log/jenkinssudo chown -R admin /var/lib/jenkinssudo chgrp -R admin /var/lib/jenkinssudo chown -R admin /var/cache/jenkinssudo chgrp -R admin /var/cache/jenkins
/etc/sysconfig/jenkins
sudo service jenkins start/stop/restart
sudo chkconfig jenkins on