> 文章列表 > 系统环境配置

系统环境配置

系统环境配置

1、openjdk和Maven安装

添加环境变量

~/.bash_profileexport MAVEN_HOME=/Users/admin/Software/apache-maven-3.8.1export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Homeexport PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH

注释:.bash_profile 是用户的配置文件,配置一些基础环境变量。

执行环境变量:source ~/.bash_profile

添加环境变量:open ~/.bash_profile  添加配置