CentOS 6.5下安装Jenkins

分类:CentOS教程 阅读:31865 次

官方文档:http://pkg.jenkins-ci.org/redhat/

1.先安装JAVA

http://blog.csdn.net/fenglailea/article/details/26006647

2.安装jenkins

  1. sudowget-O/etc/yum.repos.d/jenkins.repohttp://pkg.jenkins-ci.org/redhat/jenkins.repo
  1. sudorpm--importhttp://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
  1. yuminstalljenkins

3.设置jenkins 端口和用户

  1. sudovi/etc/sysconfig/jenkins

4.安装目录和日志

  1. /usr/lib/jenkins#安装目录
  2. /var/log/jenkins#日志目录

5.jenkins启动文件

  1. sudo/sbin/servicejenkinsstart