简体   繁体   English

具有MAC的Jmeter

[英]Jmeter with MAC

I have a question about Jmeter on MAC. 我对MAC上的Jmeter有疑问。 1. I got new computer and try to download Jmeter, all the downloads from apach is not opened. 1.我有一台新计算机,并尝试下载Jmeter,但未打开从apach进行的所有下载。 2. I somehow managed via guide on net to download Jmeter 3.1, but in mac how I find the lib folder? 2.我通过网络上的指南以某种方式管理下载Jmeter 3.1,但是在Mac中我如何找到lib文件夹? and the EXT folder, this is much more harder than in win computer, I am new in mac and not understand where to put jars 和EXT文件夹,这比Win电脑要难得多,我是Mac的新手,不知道将jars放在哪里

Step 1 : Got to Jmeter site and download binaries . 步骤1 :转到Jmeter站点并下载二进制文件。 Here . 在这里 After this Unzip at some preferred location. 之后,在某个首选位置解压缩。

Step 2 : Once downloaded , open ur terminal in MAC. 步骤2 :下载后,在MAC中打开您的终端。 Got to the location where the Jmeter is. 转到Jmeter所在的位置。 See the bin folder. 请参阅bin文件夹。 Go inside it. 进去吧 Then type sh ./jmeter.sh . 然后输入sh ./jmeter.sh Basically the bin folder have jmeter.sh file which executes it. 基本上bin文件夹中有执行它的jmeter.sh文件。

You need not install any Jmeter. 您无需安装任何Jmeter。 This approach works fine. 这种方法效果很好。 Also, make sure you have java installed. 另外,请确保已安装Java。 IF you are not sure, Here Note that you must have Java 8 or Java 9 for Jmeter 4. Any specific reasons why use Jmeter 3.1 ? 如果你不知道, 这里需要注意的是,你必须具有Java 8或Java 9 JMeter的4.任何具体原因使用的JMeter 3.1?

On Mac, download the latest JMeter 4.0 tar.gz file and expand it. 在Mac上,下载最新的JMeter 4.0 tar.gz文件并将其展开。

Install Java 8 and you'll be able to run it. 安装Java 8,您将能够运行它。

Alternatively you can use Homebrew as described here: 另外,您也可以按照以下说明使用Homebrew:

  1. Download latest Java for Mac from Oracle website Oracle网站下载适用于Mac的最新Java

    JMeter下载Java

  2. Double click the .dmg and follow installation wizard steps 双击.dmg并按照安装向导的步骤进行操作
  3. Download JMeter version of your choice from https://archive.apache.org/dist/jmeter/binaries/ . https://archive.apache.org/dist/jmeter/binaries/下载您选择的JMeter版本。 Keep in mind that according to JMeter Best Practices it is recommended to use the latest version of JMeter 请记住,根据JMeter最佳实践 ,建议使用最新版本的JMeter
  4. Unpack JMeter and open its "bin" folder in Terminal 解压JMeter并在终端中打开其“ bin”文件夹
  5. Run JMeter as ./jmeter ./jmeter运行JMeter
  6. "lib" folder will be in its usual location “ lib”文件夹将位于其通常位置

If you installed JMeter 3.1 using ie Homebrew , you will find "lib" folder under 如果使用ie Homebrew安装了JMeter 3.1,则会在下面找到“ lib”文件夹

/usr/local/Cellar/jmeter/3.1/libexec/lib/

You may also find How to Open JMX Files on a Mac in 1 (Double) Click guide useful - it contains instructions how to associate JMeter with .jmx files on Mac so you will be able to open them by just clicking them in Finder. 您可能还会发现如何在1(双击)单击指南中打开Mac上的JMX文件的方法-它包含如何在Mac上将JMeter与.jmx文件关联的说明,因此您只需在Finder中单击它们即可打开它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM