Mac下配置环境变量

配置java和jmeter环境变量

vim ~/.bash_profile



写入以下内容

#配置java地址

export JAVA_HOME=/Users/username/Library/Java/JavaVirtualMachines/corretto-1.8.0_342/Contents/Home

#配置jmeter地址

export JMETER_HOME=/Users/username/Downloads/软件/apache-jmeter-5.5

export PATH=$JAVA_HOME/bin:$PATH:.:$JMETER_HOME/bin:$PATH

export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JMETER_HOME/lib/ext/ApachJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$JMETER_HOME/lib.logkit-2.0.jar

注:username为用户名

你可能感兴趣的:(Mac下配置环境变量)