mac zshrc环境变量配置
时间:2021-06-15 18:18:32
收藏:0
阅读:0
配置mac zshrc的环境变量时犯了一个错误,我配置了多个export PATH, 结果只有一个PATH生效了,所以配置多个PATH是错误的;
zshrc中环境变量配置如下:
export ANDROID_HOME=/Users/xxx/configSoft/android-sdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home
export JMETER_HOME=/Users/xxx/Downloads/tools/apache-jmeter-5.4.1
export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/build-tools/29.0.3:$JAVA_HOME/bin:$JMETER_HOME/bin:/usr/local/bin/python3
export CLASSPATH=.:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar
配置完成后执行:
echo $PATH
echo $CLASSPATH
评论(0)