mac jdk,git,idea安装

根目录创建data文件夹

sudo vim /etc/synthetic.conf
data	/Users/simon/data
保存重启

jdk下载安装

官网(太慢):
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
#查看java版本
java -version

安装brew

参考:brew安装教程

git下载安装

# 搜索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 

idea安装

安装与激活

你可能感兴趣的:(java,macos,git)