首页 > 代码库 > CentOS 上 Jenkins 安装

CentOS 上 Jenkins 安装

说明:jdk+tomcat+jenkins 
jenkins官网:http://jenkins-ci.org/ 

0.环境准备 
jdk1.8.0_05 + apache-tomcat-8.0.5 
1.添加Jenkins的源(repository): 
# wget -O /etc/yum.repos.d/jenkins.repo http://jenkins-ci.org/redhat/jenkins.repo 
# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key 
2.安装Jenkins: 
# yum install jenkins 
3.部署jenkins 
# ll /usr/lib/jenkins/ 
# cp /usr/lib/jenkins/jenkins.war /usr/local/apache-tomcat-8.0.5/webapps/jenkins 
# jar -xvf jenkins.war 
4.其他 
/etc/sysconfig/jenkins #设置jenkins 端口和用户 
/var/lib/jenkins/ #安装目录 
/var/log/jenkins/ #日志目录 
5.访问URL 
http://IP:8080/jenkins/

CentOS 上 Jenkins 安装