首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

jenkins装配步骤

2013-08-23 
jenkins安装步骤安装环境:CentOS release 5.9 (Final)一、安装java下载jdk-6u30-linux-x64-rpm.binchmod +x

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

二、安装maven
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版本信息
mvn -v



三、安装jenkins
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


jenkins配置文件:
/etc/sysconfig/jenkins


jenkins启动命令
sudo service jenkins start/stop/restart


随系统启动:
sudo chkconfig jenkins on


jenkins系统设置中的maven设置:


参考:https://wiki.jenkins-ci.org/display/JENKINS/Use+Jenkins

热点排行