mac上搭建jenkins
2016-01-27 20:42
330 查看
原文:http://www.jayfeng.com/2015/10/22/%E4%BD%BF%E7%94%A8jenkins%E8%87%AA%E5%8A%A8%E5%8C%96%E6%9E%84%E5%BB%BAandroid%E5%92%8Cios%E5%BA%94%E7%94%A8/
官网地址:http://jenkins-ci.org/
默认访问http://localhost:8080/,
可进入jenkins配置页面。
安装过程中常见问题:
执行安装命令时提示:jenkins: Java 1.7+ is required to install this formula
![](https://img-blog.csdn.net/20160127203634695?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
原因:当前安装jdk版本过低,应>1.7+,mac电脑默认的jdk版本是1.6,故需升级jdk
升级步骤:
1、查看当前jdk版本
You can determine which version of the JDK is the default by typing java -version in a Terminal window. If the installed version is 7u6, you will see a
string that includes the text 1.7.0_06. For example:
To run a different version of Java, either specify the full path, or use the java_home tool:
2、从官网上下载最新版本的jdk,官网地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
3、安装成功后删除,系统默认的jdk
Navigate to /Library/Java/JavaVirtualMachines and remove the directory whose name matches the following format:*
For example, to uninstall 7u6:
详见:http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
4000
安装Jenkins
官网地址:http://jenkins-ci.org/1 2 3 4 | // 使用brew安装 brew install jenkins // 启动,直接运行jenkins即可启动服务 jenkins |
可进入jenkins配置页面。
安装过程中常见问题:
执行安装命令时提示:jenkins: Java 1.7+ is required to install this formula
原因:当前安装jdk版本过低,应>1.7+,mac电脑默认的jdk版本是1.6,故需升级jdk
升级步骤:
1、查看当前jdk版本
You can determine which version of the JDK is the default by typing java -version in a Terminal window. If the installed version is 7u6, you will see a
string that includes the text 1.7.0_06. For example:
% java -version java version "1.7.0_06-ea" Java(TM) SE Runtime Environment (build 1.7.0_06-ea-b13) Java HotSpot(TM) 64-Bit Server VM (build 23.2-b04, mixed mode)
To run a different version of Java, either specify the full path, or use the java_home tool:
/usr/libexec/java_home -v 1.7.0_06 --exec javac -version
2、从官网上下载最新版本的jdk,官网地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
3、安装成功后删除,系统默认的jdk
Navigate to /Library/Java/JavaVirtualMachines and remove the directory whose name matches the following format:*
/Library/Java/JavaVirtualMachines/jdk<major>.<minor>.<macro[_update]>.jdk
For example, to uninstall 7u6:
% rm -rf jdk1.7.0_06.jdk
详见:http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
4000
相关文章推荐
- nofollow是什么意思?nofollow标签的写法和作用
- QT C1041错误
- nofollow是什么意思?nofollow标签的写法和作用
- summery
- MSSQL数据库 事务隔离级别
- socket编程-微软小兵
- Openstack 在VMware虚拟机ESXI和Workstation下安装需要更改参数
- (转) 架构师的能力模型
- 蓝桥杯--账目清单对账(简单递归)
- POST异步请求方式(使用代理)
- C++文件读写
- 虚拟机 开发板 PC机 三者之间不能ping通的各种原因分析
- php中error与exception的区别及应用
- 最优化问题简介
- iOS图片的渲染
- Autolayout自动布局2
- Android so文件生成
- JSP取得绝对路径
- 面试题—链表操作
- 相当漂亮的主题