sudo vim /etc/synthetic.conf
data /Users/simon/data
保存重启
官网(太慢):
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
国内:
http://www.codebaoku.com/jdk/jdk-oracle-jdk1-8.html#jdk8u151
m2安装jdk8低版本可能会报错,选择jdk1.8.0_361.jdk即可解决
查看jdk路径
#查看jdk路径
/usr/libexec/java_home -V
#配置环境变量
vim .bash_profile
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_361.jdk/Contents/Home
PATH=$JAVA_HOME/bin:$PATH
export PATH
export CLASSPATH
#刷新
source .bash_profile
#查看java版本
java -version
参考:brew安装教程
# 搜索git
brew search git
# 安装git
brew install git
# 更新git
brew upgrade git
# 卸载git
brew uninstall git
#vim ~/.zshrc
git config —global user.name “XXX"
git config --global user.email “XXXX"
ssh-keygen -t rsa -C “your_email”
#放到远程仓库ssh
cat /Users/电脑用户名/.ssh/id_rsa.pub
#如果每次拉取都需要输入密码
ssh-add -K /Users/mac/.ssh/id_rsa