I have a script which uses jmeter. Now, instead of giving the path in the script like sh /home/ubuntu/apache-jmeter-3.0/bin/jmeter.sh -n -t fileName.jmx
in the script I just want to give sh jmeter.sh -n -t fileName.jmx
in the script. So, I want to set up the PATH of the jmeter
in ubuntu
. I didn't understand how to do it. Can some one help.
Path to my jmeter is: /home/ubuntu/apache-jmeter-3.0
Add the directory /home/ubuntu/apache-jmeter-3.0/bin
to your path:
export PATH="$PATH":/home/ubuntu/apache-jmeter-3.0/bin
Then you can use it directly:
jmeter.sh -n -t fileName.jmx
To make it permanent, add the new PATH
declaration to your ~/.bashrc
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.