Linux下Jenkins的安装及配置
2015-08-25 10:45
639 查看
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key yum install jenkins
运行以上三条命令完成Jenkins的安装。
1、关于安装目录/usr/lib/jenkins
在安装目录下只有一个Jenkins的运行程序包,jenkins.war。
2、关于配置,访问端口,JENKINS_HOME指定Jenkins的主目录等配置均可配置,模板如下:
## Path: Development/Jenkins
## Description: Configuration for the Jenkins continuous build server
## Type: string
## Default: "/var/lib/jenkins"
## ServiceRestart: jenkins
#
# Directory where Jenkins store its configuration and working
# files (checkouts, build reports, artifacts, ...).
#
JENKINS_HOME="/var/lib/jenkins"
## Type: string
## Default: ""
## ServiceRestart: jenkins
#
# Java executable to run Jenkins
# When left empty, we'll try to find the suitable Java.
#
JENKINS_JAVA_CMD=""
## Type: string
## Default: "jenkins"
## ServiceRestart: jenkins
#
# Unix user account that runs the Jenkins daemon
# Be careful when you change this, as you need to update
# permissions of $JENKINS_HOME and /var/log/jenkins.
#
JENKINS_USER="jenkins"
## Type: string
## Default: "-Djava.awt.headless=true"
## ServiceRestart: jenkins
#
# Options to pass to java when running Jenkins.
#
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
## Type: integer(0:65535)
## Default: 8080
## ServiceRestart: jenkins
#
# Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_PORT="8080"
## Type: integer(0:65535)
## Default: 8009
## ServiceRestart: jenkins
#
# Ajp13 Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_AJP_PORT="8009"
## Type: integer(1:9)
## Default: 5
## ServiceRestart: jenkins
#
# Debug level for logs -- the higher the value, the more verbose.
# 5 is INFO.
#
JENKINS_DEBUG_LEVEL="5"
## Type: yesno
## Default: no
## ServiceRestart: jenkins
#
# Whether to enable access logging or not.
#
JENKINS_ENABLE_ACCESS_LOG="no"
## Type: integer
## Default: 100
## ServiceRestart: jenkins
#
# Maximum number of HTTP worker threads.
#
JENKINS_HANDLER_MAX="100"
## Type: integer
## Default: 20
## ServiceRestart: jenkins
#
# Maximum number of idle HTTP worker threads.
#
JENKINS_HANDLER_IDLE="20"
## Type: string
## Default: ""
## ServiceRestart: jenkins
#
# Pass arbitrary arguments to Jenkins.
# Full option list: java -jar jenkins.war --help
#
JENKINS_ARGS=""3、关于JENKINS_HOME,Jenkins的主目录/var/lib/jenkins/。
4、关于Jenkins的日志,文件全路径/var/log/jenkins/jenkins.log。
5、关于启动Jenkins
设置为自动启动:chkconfig jenkins on
启动Jenkins:service jenkins start
(停止:stop,重启:restart)
6、关于访问Jenkins,地址格式:http://ip:port
相关文章推荐
- Linux 目录结构
- Linux中常用操作命令
- Linux(Ubuntu)下MySQL的安装与配置
- 【linux命令与工具】ethtool命令
- linux几种快速清空文件内容的方法
- CentOS安装配置redmine 走了好多弯路 总算搞定
- Linux CentOS 7.0下编译安装MySQL 5.6.15【图文详情】
- Centos7和win7双系统调整默认启动
- Linux下内存占用和CPU占用的计算
- Ubuntu系统下的Hadoop集群(7)_设置Linux环境变量的方法和区别
- SELINUX部分的权限规则问题鸟哥7.4&&7.5?????
- linux fork函数与vfork函数
- Linux下修改MySQL默认存储引擎
- Centos 6.5下企业级自动化运维部署-Ansible
- linux socket编程注意点 和 关闭selinux、防火墙 或者 设置相应端口允许通讯!!!
- 跨平台(linux/win)启动线程, 并设置线程名称(便于调试)
- Ubuntu vs centos
- Linux防SYN Flood***
- linux修改网卡速率
- VirtualBox安装CentOS后如何安装增强功能