美文网首页
mac环境变量配置问题

mac环境变量配置问题

作者: 汪梓文 | 来源:发表于2017-06-24 15:25 被阅读0次

环境变量配置文件顺序

/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc

配置.bash_profile,~目录没有就创建

Maven为例:

export M2_HOME=地址
export PATH=$PATH:$M2_HOME/bin #冒号隔开
source .bash_profile #命令生效

相关文章

网友评论

      本文标题:mac环境变量配置问题

      本文链接:https://www.haomeiwen.com/subject/wtskcxtx.html