mac book 搭建开发环境

mac book 搭建开发环境

mac book 搭建开发环境
(1)安装jdk
mac jdk 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
注意:要下载jdk,而不是jre
(2)设置java环境变量
mac booke中安装jdk ,没有让用户选择安装目录,那么jdk安装到了哪里呢?
默认安装到了:

/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk
所以设置JAVA_HOME
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home

export JAVA_HOME
参考:http://www.cnblogs.com/symen/p/4974408.html

(3)配置hosts
参考:http://laod.cn/hosts/2015-google-hosts.html
(4)设置git权限
需要把git的私钥拷贝到 /Users/whuanghkl/.ssh 下

mac book 搭建开发环境_第1张图片
使用git私钥

** (5)安装hosts切换工具**
mac下 hosts切换工具:gas mask
下载地址:http://www.macupdate.com/app/mac/29949/gas-mask/download

mac book 搭建开发环境_第2张图片
切换hosts

mac book 搭建开发环境_第3张图片
切换hosts

** (6)安装brew **
参考:http://brew.sh/
安装命令:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装过程:
localhost:Downloads whuanghkl$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==>**** This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==>**** The following directories will be made group writable:
/usr/local/.
/usr/local/bin
==>**** The following directories will have their owner set to ****whuanghkl:
/usr/local/.
/usr/local/bin
==>**** The following directories will have their group set to ****admin:
/usr/local/.
/usr/local/bin

** (7)设置安全级别,方便安装app**
有时候安装mac 软件时,提示无法安装或无法打开:


mac book 搭建开发环境_第4张图片
切换hosts
mac book 搭建开发环境_第5张图片
必须先解锁

** (8)把f1,f2等设置为普通键**

mac book 搭建开发环境_第6张图片
将F1,F2用作标准键

(9)截图工具
优先推荐 snagit
参考官网:https://www.techsmith.com/snagit.html
snagit序列号:http://hw1287789687.iteye.com/blog/2286849
其次推荐Snip

Snip是免费的

(10)代码编辑工具
Sublime Text
注册码:https://www.douban.com/note/504060535/
http://hw1287789687.iteye.com/blog/2286815

mac book 搭建开发环境_第7张图片
Sublime Text

IDEA 注册码/激活码: http://hw1287789687.iteye.com/blog/2285320

你可能感兴趣的:(mac book 搭建开发环境)