mac环境变量配置问题

2017-06-24  本文已影响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 #命令生效

上一篇 下一篇

猜你喜欢

热点阅读