0: 安装brew : mac终端输入: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1:使用brew安装git命令: brew install git
2: jdk安装: brew install java (输入后默认安装的是jdk最新版本)
制定安装jdk版本(这里命令以安装jdk8为例):
-
brew tap caskroom/versions
-
brew cask install 两步骤搞定