mac 下 .bash_profile配置

终端输入 vim .bash_profile

export M2_HOME=/usr/local/apache-maven-3.3.9
export PATH=$PATH:$M2_HOME/bin

export GRADLE_HOME=/usr/local/Cellar/gradle/4.10.2
export PATH=$PATH:$GRADLE_HOME/bin

export MONGO_HOME=/usr/local/Cellar/[email protected]/3.4.18
export PATH=$PATH:$MONGO_HOME/bin

export RABBIT_HOME=/usr/local/Cellar/rabbitmq/3.7.15
export PATH=$PATH:$RABBIT_HOME/sbin

修改之后文件生效source .bash_profile

你可能感兴趣的:(Mac)