jmeter无法启动,显示整数表达式预期问题

时间:2019-06-30 06:41:16

标签: jmeter

当我从mac中的bin文件夹中点击jmeter时显示此错误:

bash: export: `home]': not a valid identifier
shubhams-MacBook-Pro:~ shubhamsaini$ /Users/hell/Downloads/apache-jmeter-5.1/bin/jmeter ; exit;
/Users/hell/Downloads/apache-jmeter-5.1/bin/jmeter: line 128: [: : integer expression expected
/Users/hell/Downloads/apache-jmeter-5.1/bin/jmeter: line 192: [path/bin/java: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

1 个答案:

答案 0 :(得分:1)

我认为您无法通过“点击”来运行JMeter

  1. 确保已安装Java Runtime Environment version 8 or higher for Mac

    enter image description here

  2. 安装Java后,通过启动Terminal application并键入以下命令来验证它是否可以使用:

    java --version
    

    您应该看到已安装的Java版本作为输出

  3. 假设第2步成功:

    • 导航到JMeter的bin文件夹:

      cd /Users/hell/Downloads/apache-jmeter-5.1/bin/
      
    • 启动JMeter:

      ./jmeter.sh
      
  4. 就是这样,您应该看到JMeter GUI。
  5. 您可能还对configuring your MacOS to open JMeter's JMX files on double click指南
  6. 感兴趣