export JAVA_HOME=/opt/jdk1.8.0_171 export PATH=$PATH:$JAVA_HOME/bin
让环境变量生效
vi /etc/profile
添加下述两行:
export JMETER_HOME=/data1/apache-jmeter-3.2
export PATH=$PATH:$JMETER_HOME/bin
#export CLASSPATH=$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER/lib/jorphan.jar:$JMETER/lib/logkit-2.0.jar
完成添加后下述命令使配置生效:
source /etc/profile