【Linux】Ubuntu随笔
Ubuntu声明环境变量时使用 export JAVA_HOME=/xx/xx/xx,当需要引用时要写成 $JAVA_HOME
所以配置环境变量并声明方法如下:
vim ~/.bashrc
export JAVA_HOME=/home/user_name/Programs/jdk1.8.0_301 export JMETER_HOME=/home/user_name/Programs/apache-jmeter-5.4.1 export CLASSPATH=$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$CLASSPATH export PATH=$PATH:$JAVA_HOME/bin:$JMETER_HOME/bin
source ~/.bashrc