Mac系统中的环境变量:
a. /etc/profile
b. /etc/paths
c. ~/.bash_profile
d. ~/.bash_login
e. ~/.profile
f. ~/.bashrc
其中a和b是系统级别的,系统启动就加载,其余是用户接别的,c,d,e按照
从前往后的顺序读取,如果c文件存在,则后面的几个文件被忽略
在Mac中我们的环境是添加到PATH路径下的,系统运行就直接去找
/usr/libexec/path_helper这个文件
export MAVEN_HOME=/usr/local/apache-maven-3.6.0
export PATH=$PATH:$MAVEN_HOME