命令行运行jmeter
Linux下最好输入全部路径 /usr/apache-jmeter-2.11/bin/jmeter -n -tscript.jmx x -l log.jtl
否则会有-bash: jmeter: command not found 报错
参数说明:
-n This specifies JMeter is to run in non-gui mode
-t [name of JMX file that contains the Test Plan].
-l [name of JTL file to log sample results to].
-r Run all remote servers specified in JMeter.properties (or remote servers specified on command line by overriding properties)
The script also lets you specify the optional firewall/proxy server information:
-H [proxy server hostname or ip address]
-P [proxy server port]